|
VMime
|
#include <importanceHelper.hpp>
Public Types | |
| enum | Importance { IMPORTANCE_HIGHEST , IMPORTANCE_HIGH , IMPORTANCE_NORMAL , IMPORTANCE_LOW , IMPORTANCE_LOWEST } |
Static Public Member Functions | |
| static void | resetImportance (shared_ptr< message > msg) |
| static void | resetImportanceHeader (shared_ptr< header > hdr) |
| static Importance | getImportance (shared_ptr< const message > msg) |
| static Importance | getImportanceHeader (shared_ptr< const header > hdr) |
| static void | setImportance (shared_ptr< message > msg, const Importance i) |
| static void | setImportanceHeader (shared_ptr< header > hdr, const Importance i) |
Deals with setting and retrieving message importance (also known as priority).
Basically, it wraps the use of the 'X-Priority' (non standard) and 'Importance' (RFC-1327, RFC-1911) fields.
| enum Importance |
|
static |
Return the importance of the specified message.
| msg | message from which to retrieve importance |
References getImportanceHeader().
|
static |
Return the importance of a message, given its header.
| hdr | message header from which to retrieve importance |
References text::getWholeBuffer(), IMPORTANCE_HIGH, IMPORTANCE_HIGHEST, IMPORTANCE_LOW, IMPORTANCE_LOWEST, IMPORTANCE_NORMAL, stringUtils::toLower(), and stringUtils::trim().
Referenced by getImportance().
|
static |
Reset the importance of the message to the default importance.
| msg | message on which to reset importance |
References resetImportanceHeader().
|
static |
Reset the importance of a message to the default importance.
| hdr | message header on which to reset importance |
Referenced by resetImportance().
|
static |
Set the importance of the specified message.
| msg | message on which to set importance |
| i | new message importance |
References setImportanceHeader().
|
static |
Set the importance of a message, given its header.
| hdr | message header on which to set importance |
| i | new message importance |
References IMPORTANCE_HIGH, IMPORTANCE_HIGHEST, IMPORTANCE_LOW, IMPORTANCE_LOWEST, and IMPORTANCE_NORMAL.
Referenced by setImportance().