|
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.
|
static |
Return the importance of the specified message.
| msg | message from which to retrieve importance |
References vmime::dynamicCast(), and importanceHelper::getImportanceHeader().
|
static |
Return the importance of a message, given its header.
| hdr | message header from which to retrieve importance |
References vmime::dynamicCast(), text::getWholeBuffer(), importanceHelper::IMPORTANCE_HIGH, importanceHelper::IMPORTANCE_HIGHEST, importanceHelper::IMPORTANCE_LOW, importanceHelper::IMPORTANCE_LOWEST, importanceHelper::IMPORTANCE_NORMAL, stringUtils::toLower(), and stringUtils::trim().
Referenced by importanceHelper::getImportance().
|
static |
Reset the importance of the message to the default importance.
| msg | message on which to reset importance |
References vmime::dynamicCast(), and importanceHelper::resetImportanceHeader().
|
static |
Reset the importance of a message to the default importance.
| hdr | message header on which to reset importance |
References vmime::dynamicCast().
Referenced by importanceHelper::resetImportance().
|
static |
Set the importance of the specified message.
| msg | message on which to set importance |
| i | new message importance |
References vmime::dynamicCast(), and importanceHelper::setImportanceHeader().
|
static |
Set the importance of a message, given its header.
| hdr | message header on which to set importance |
| i | new message importance |
References vmime::dynamicCast(), importanceHelper::IMPORTANCE_HIGH, importanceHelper::IMPORTANCE_HIGHEST, importanceHelper::IMPORTANCE_LOW, importanceHelper::IMPORTANCE_LOWEST, and importanceHelper::IMPORTANCE_NORMAL.
Referenced by importanceHelper::setImportance().