KMime

mdn.cpp File Reference
#include "mdn.h"
#include "kmime_version.h"
#include "util.h"
#include "codecs_p.h"
#include "kmime_debug.h"
#include <QByteArray>
#include <QCoreApplication>
#include <array>
#include <unistd.h>
Include dependency graph for 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

static constexpr std::array< ActionModeMetaData, 2 > KMime::MDN::actionModes
 
static constexpr std::array< DispositionModifierMetaData, 5 > KMime::MDN::dispositionModifiers
 
static constexpr std::array< DispositionMetaData, 6 > KMime::MDN::dispositionTypes
 
static constexpr std::array< SendingModeMetaData, 2 > 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 mdn.cpp.

Function Documentation

◆ descriptionFor()

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

Definition at line 276 of file mdn.cpp.

◆ dispositionField()

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

Definition at line 178 of file 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 )
nodiscard

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

Definition at line 245 of file mdn.cpp.

◆ finalRecipient()

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

Definition at line 205 of file mdn.cpp.

◆ orginalRecipient()

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

Definition at line 215 of file mdn.cpp.

◆ originalMessageID()

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

Definition at line 224 of file mdn.cpp.

◆ reportingUAField()

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

Definition at line 233 of file mdn.cpp.

◆ stringFor() [1/4]

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

Definition at line 144 of file mdn.cpp.

◆ stringFor() [2/4]

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

Definition at line 120 of file mdn.cpp.

◆ stringFor() [3/4]

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

Definition at line 94 of file mdn.cpp.

◆ stringFor() [4/4]

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

Definition at line 168 of file mdn.cpp.

Variable Documentation

◆ actionModes

std::array<ActionModeMetaData, 2> KMime::MDN::actionModes
staticconstexpr
Initial value:
= {
ActionModeMetaData{ ManualAction, "manual-action" },
ActionModeMetaData{ AutomaticAction, "automatic-action" }
}

Definition at line 139 of file mdn.cpp.

◆ dispositionModifiers

std::array<DispositionModifierMetaData, 5> KMime::MDN::dispositionModifiers
staticconstexpr
Initial value:
= {
DispositionModifierMetaData{ Error, "error" },
DispositionModifierMetaData{ Warning, "warning" },
DispositionModifierMetaData{ Superseded, "superseded" },
DispositionModifierMetaData{ Expired, "expired" },
DispositionModifierMetaData{ MailboxTerminated, "mailbox-terminated" }
}

Definition at line 112 of file mdn.cpp.

◆ dispositionTypes

std::array<DispositionMetaData, 6> KMime::MDN::dispositionTypes
staticconstexpr

Definition at line 49 of file mdn.cpp.

◆ sendingModes

std::array<SendingModeMetaData, 2> KMime::MDN::sendingModes
staticconstexpr
Initial value:
= {
SendingModeMetaData{ SentManually, "MDN-sent-manually" },
SendingModeMetaData{ SentAutomatically, "MDN-sent-automatically" }
}

Definition at line 163 of file mdn.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.