KMime

kmime_mdn.cpp File Reference
#include "kmime_mdn.h"
#include "kmime_version.h"
#include "kmime_util.h"
#include "kmime_codecs_p.h"
#include "kmime_debug.h"
#include <KLocalizedString>
#include <QByteArray>
#include <unistd.h>
#include <KLazyLocalizedString>
Include dependency graph for kmime_mdn.cpp:

Go to the source code of this file.

Functions

QString KMime::MDN::descriptionFor (DispositionType d, const QList< DispositionModifier > &)
 
static QByteArray KMime::MDN::dispositionField (DispositionType d, ActionMode a, SendingMode s, const QList< DispositionModifier > &m)
 
QByteArray KMime::MDN::dispositionNotificationBodyContent (const QString &finalRecipient, const QByteArray &originalRecipient, const QByteArray &originalMsgID, DispositionType disposition, ActionMode actionMode, SendingMode sendingMode, const QList< DispositionModifier > &dispositionModifers=QList< DispositionModifier >(), const QString &special=QString())
 
static QByteArray KMime::MDN::finalRecipient (const QString &recipient)
 
static QByteArray KMime::MDN::orginalRecipient (const QByteArray &recipient)
 
static QByteArray KMime::MDN::originalMessageID (const QByteArray &msgid)
 
static QByteArray KMime::MDN::reportingUAField ()
 
static const char * KMime::MDN::stringFor (ActionMode a)
 
static const char * KMime::MDN::stringFor (DispositionModifier m)
 
static const char * KMime::MDN::stringFor (DispositionType d)
 
static const char * KMime::MDN::stringFor (SendingMode s)
 

Variables

struct { 
 
   ActionMode   KMime::MDN::actionMode 
 
   const char *   KMime::MDN::string 
 
KMime::MDN::actionModes [] 
 
struct { 
 
   DispositionModifier   KMime::MDN::dispositionModifier 
 
   const char *   KMime::MDN::string 
 
KMime::MDN::dispositionModifiers [] 
 
struct { 
 
   const KLazyLocalizedString   KMime::MDN::description 
 
   DispositionType   KMime::MDN::dispositionType 
 
   const char *   KMime::MDN::string 
 
KMime::MDN::dispositionTypes [] 
 
static const int KMime::MDN::numActionModes
 
static const int KMime::MDN::numDispositionModifiers
 
static const int KMime::MDN::numDispositionTypes
 
static const int KMime::MDN::numSendingModes
 
struct { 
 
   SendingMode   KMime::MDN::sendingMode 
 
   const char *   KMime::MDN::string 
 
KMime::MDN::sendingModes [] 
 

Detailed Description

This file is part of the API for handling MIME data and provides functions for supporting Message Disposition Notifications (MDNs), also known as email return receipts.

Provides support for Message Disposition Notifications.

Author(s)
Marc Mutz <mutz@.nosp@m.kde..nosp@m.org>

Definition in file kmime_mdn.cpp.

Function Documentation

◆ descriptionFor()

KMIME_EXPORT QString KMime::MDN::descriptionFor ( DispositionType d,
const QList< DispositionModifier > &  )

Definition at line 267 of file kmime_mdn.cpp.

◆ dispositionField()

static QByteArray KMime::MDN::dispositionField ( DispositionType d,
ActionMode a,
SendingMode s,
const QList< DispositionModifier > & m )
static

Definition at line 169 of file kmime_mdn.cpp.

◆ dispositionNotificationBodyContent()

KMIME_EXPORT QByteArray KMime::MDN::dispositionNotificationBodyContent ( const QString & r,
const QByteArray & o,
const QByteArray & omid,
DispositionType d,
ActionMode a,
SendingMode s,
const QList< DispositionModifier > & m,
const QString & special )

Generates the content of the message/disposition-notification body part.

Definition at line 236 of file kmime_mdn.cpp.

◆ finalRecipient()

static QByteArray KMime::MDN::finalRecipient ( const QString & recipient)
static

Definition at line 196 of file kmime_mdn.cpp.

◆ orginalRecipient()

static QByteArray KMime::MDN::orginalRecipient ( const QByteArray & recipient)
static

Definition at line 206 of file kmime_mdn.cpp.

◆ originalMessageID()

static QByteArray KMime::MDN::originalMessageID ( const QByteArray & msgid)
static

Definition at line 215 of file kmime_mdn.cpp.

◆ reportingUAField()

static QByteArray KMime::MDN::reportingUAField ( )
static

Definition at line 224 of file kmime_mdn.cpp.

◆ stringFor() [1/4]

static const char * KMime::MDN::stringFor ( ActionMode a)
static

Definition at line 134 of file kmime_mdn.cpp.

◆ stringFor() [2/4]

static const char * KMime::MDN::stringFor ( DispositionModifier m)
static

Definition at line 109 of file kmime_mdn.cpp.

◆ stringFor() [3/4]

static const char * KMime::MDN::stringFor ( DispositionType d)
static

Definition at line 82 of file kmime_mdn.cpp.

◆ stringFor() [4/4]

static const char * KMime::MDN::stringFor ( SendingMode s)
static

Definition at line 159 of file kmime_mdn.cpp.

Variable Documentation

◆ actionMode

ActionMode KMime::MDN::actionMode

Definition at line 124 of file kmime_mdn.cpp.

◆ [struct]

const struct { ... } KMime::MDN::actionModes[]
Initial value:
= {
{ ManualAction, "manual-action" },
{ AutomaticAction, "automatic-action" }
}

◆ description

const KLazyLocalizedString KMime::MDN::description

Definition at line 47 of file kmime_mdn.cpp.

◆ dispositionModifier

DispositionModifier KMime::MDN::dispositionModifier

Definition at line 96 of file kmime_mdn.cpp.

◆ [struct]

const struct { ... } KMime::MDN::dispositionModifiers[]
Initial value:
= {
{ Error, "error" },
{ Warning, "warning" },
{ Superseded, "superseded" },
{ Expired, "expired" },
{ MailboxTerminated, "mailbox-terminated" }
}

◆ dispositionType

DispositionType KMime::MDN::dispositionType

Definition at line 45 of file kmime_mdn.cpp.

◆ [struct]

const struct { ... } KMime::MDN::dispositionTypes[]
Initial value:
= {{Displayed,
"displayed",
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been displayed. This is no guarantee that "
"the message has been read or understood.")},
{Deleted,
"deleted",
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been deleted unseen. This is no guarantee "
"that the message will not be \"undeleted\" and nonetheless "
"read later on.")},
{Dispatched,
"dispatched",
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been dispatched. This is no guarantee "
"that the message will not be read later on.")},
{Processed,
"processed",
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been processed by some automatic means.")},
"denied",
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been acted upon. The sender does not wish "
"to disclose more details to you than that.")},
{Failed,
"failed",
kli18n("Generation of a Message Disposition Notification for the "
"message sent on ${date} to ${to} with subject \"${subject}\" "
"failed. Reason is given in the Failure: header field below.")}}

◆ numActionModes

const int KMime::MDN::numActionModes
static
Initial value:
=
sizeof actionModes / sizeof *actionModes

Definition at line 131 of file kmime_mdn.cpp.

◆ numDispositionModifiers

const int KMime::MDN::numDispositionModifiers
static
Initial value:
=
sizeof dispositionModifiers / sizeof *dispositionModifiers

Definition at line 106 of file kmime_mdn.cpp.

◆ numDispositionTypes

const int KMime::MDN::numDispositionTypes
static
Initial value:
=
sizeof dispositionTypes / sizeof *dispositionTypes

Definition at line 79 of file kmime_mdn.cpp.

◆ numSendingModes

const int KMime::MDN::numSendingModes
static
Initial value:
=
sizeof sendingModes / sizeof *sendingModes

Definition at line 156 of file kmime_mdn.cpp.

◆ sendingMode

SendingMode KMime::MDN::sendingMode

Definition at line 149 of file kmime_mdn.cpp.

◆ [struct]

const struct { ... } KMime::MDN::sendingModes[]
Initial value:
= {
{ SentManually, "MDN-sent-manually" },
{ SentAutomatically, "MDN-sent-automatically" }
}

◆ string

const char* KMime::MDN::string

Definition at line 46 of file kmime_mdn.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.