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.


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)


struct {
   ActionMode   actionMode
   const char *   string
KMime::MDN::actionModes []
struct {
   DispositionModifier   dispositionModifier
   const char *   string
KMime::MDN::dispositionModifiers []
struct {
   const KLazyLocalizedString   description
   DispositionType   dispositionType
   const char *   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   sendingMode
   const char *   string
KMime::MDN::sendingModes []

Detailed Description

Provides support for Message Disposition Notifications.

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.

Marc Mutz <>

Definition in file kmime_mdn.cpp.

Function Documentation

◆ 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.

Variable Documentation

◆ actionModes

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

◆ dispositionModifiers

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

◆ dispositionTypes

const { ... } KMime::MDN::dispositionTypes[]
Initial value:
= {{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.")},
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.")},
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.")},
kli18n("The message sent on ${date} to ${to} with subject "
"\"${subject}\" has been processed by some automatic means.")},
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.")},
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
Initial value:
sizeof actionModes / sizeof *actionModes

Definition at line 131 of file kmime_mdn.cpp.

◆ numDispositionModifiers

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

Definition at line 106 of file kmime_mdn.cpp.

◆ numDispositionTypes

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

Definition at line 79 of file kmime_mdn.cpp.

◆ numSendingModes

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

Definition at line 156 of file kmime_mdn.cpp.

◆ sendingModes

const { ... } KMime::MDN::sendingModes[]
Initial value:
= {
{ SentManually, "MDN-sent-manually" },
{ SentAutomatically, "MDN-sent-automatically" }
const AKONADI_MIME_EXPORT char Deleted[]
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:53:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.