|
VMime
|
#include <generationContext.hpp>


Public Types | |
| enum | EncodedParameterValueModes { PARAMETER_VALUE_NO_ENCODING , PARAMETER_VALUE_RFC2047_ONLY , PARAMETER_VALUE_RFC2231_ONLY , PARAMETER_VALUE_RFC2231_AND_RFC2047 } |
Public Member Functions | |
| generationContext () | |
| generationContext (const generationContext &ctx) | |
| size_t | getMaxLineLength () const |
| void | setMaxLineLength (const size_t maxLineLength) |
| const string | getPrologText () const |
| void | setPrologText (const string &prologText) |
| const string | getEpilogText () const |
| void | setEpilogText (const string &epilogText) |
| bool | getWrapMessageId () const |
| void | setWrapMessageId (const bool &wrapMessageId) |
| void | setEncodedParameterValueMode (const EncodedParameterValueModes mode) |
| EncodedParameterValueModes | getEncodedParameterValueMode () const |
| generationContext & | operator= (const generationContext &ctx) |
| void | copyFrom (const generationContext &ctx) |
Public Member Functions inherited from context | |
| virtual | ~context () |
| bool | getInternationalizedEmailSupport () const |
| void | setInternationalizedEmailSupport (const bool support) |
| const charsetConverterOptions & | getCharsetConversionOptions () const |
| void | setCharsetConversionOptions (const charsetConverterOptions &opts) |
Static Public Member Functions | |
| static generationContext & | getDefaultContext () |
Protected Attributes | |
| size_t | m_maxLineLength |
| string | m_prologText |
| string | m_epilogText |
| bool | m_wrapMessageId |
| EncodedParameterValueModes | m_paramValueMode |
Protected Attributes inherited from context | |
| bool | m_internationalizedEmail |
| charsetConverterOptions | m_charsetConvOptions |
Additional Inherited Members | |
Protected Member Functions inherited from context | |
| context () | |
| context (const context &ctx) | |
| virtual context & | operator= (const context &ctx) |
| void | copyFrom (const context &ctx) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Holds configuration parameters used for generating messages.
Modes available for generating values in parameterized header fields.
| generationContext | ( | const generationContext & | ctx | ) |
| void copyFrom | ( | const generationContext & | ctx | ) |
|
static |
Returns the default context used for generating messages.
References vmime::dynamicCast().
Referenced by component::generate(), component::generate(), SMTPTransport::send(), and emailAddress::toString().
| generationContext::EncodedParameterValueModes getEncodedParameterValueMode | ( | ) | const |
Returns the mode used for generating parameter values in a parameterized header field (see parameterizedHeaderField class).
References generationContext::m_paramValueMode.
Returns the current epilog text used when generating MIME body parts.
References generationContext::m_epilogText.
| size_t getMaxLineLength | ( | ) | const |
Returns the current maximum line length used when generating messages.
References generationContext::m_maxLineLength.
Referenced by addressList::generateImpl().
Returns the current prolog text used when generating MIME body parts.
References generationContext::m_prologText.
| bool getWrapMessageId | ( | ) | const |
Returns a boolean variable that indicates whether the message id can be wrapped or not, i.e.
from
Message-Id: <very very long@domain>
to Message-Id: <very very long@domain>
References generationContext::m_wrapMessageId.
| generationContext & operator= | ( | const generationContext & | ctx | ) |
References generationContext::copyFrom(), and vmime::dynamicCast().
| void setEncodedParameterValueMode | ( | const EncodedParameterValueModes | mode | ) |
Sets the mode used for generating parameter values in a parameterized header field (see parameterizedHeaderField class).
PARAMETER_VALUE_NO_ENCODING or PARAMETER_VALUE_RFC2047_ONLY can be used for compatibility with implementations that do not understand RFC-2231, to generate a normal parameter value. PARAMETER_VALUE_RFC2047_ONLY is non-standard (and expressly prohibited by the RFC) but most mail clients support it.
Notice: if both the normal value and the extended value are present, the latter can be ignored by mail processing systems. This may lead to annoying problems, for example, with strange names of attachments with all but 7-bit ascii characters removed, etc. Either PARAMETER_VALUE_RFC2231_ONLY or PARAMETER_VALUE_RFC2047_ONLY should be preferred over PARAMETER_VALUE_RFC2231_AND_RFC2047, not to create a normal value if the extended value is to be generated.
| mode | parameter value generation mode |
References vmime::dynamicCast(), and generationContext::m_paramValueMode.
Sets the epilog text used when generating MIME body parts.
This test appears after the part, and should be displayed by MUAs which do not support MIME. This should be 7-bit ASCII text only.
References vmime::dynamicCast(), and generationContext::m_epilogText.
Sets the maximum line length used when generating messages.
You may use the constants lineLengthLimits::convenient, lineLengthLimits::max and lineLengthLimits::infinite.
| maxLineLength | new maximum line length, in bytes |
References vmime::dynamicCast(), and generationContext::m_maxLineLength.
Referenced by addressList::generateImpl().
Sets the prolog text used when generating MIME body parts.
This text appears before the part, and should be displayed by MUAs which do not support MIME. This should be 7-bit ASCII text only.
| prologText | MIME prolog text |
References vmime::dynamicCast(), and generationContext::m_prologText.
Sets the boolean variable that indicates whether the Message-Id can be wrapped or not.
References vmime::dynamicCast(), and generationContext::m_wrapMessageId.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by generationContext::getWrapMessageId(), and generationContext::setWrapMessageId().