com.openexchange.mail.mime
Class MIMESessionPropertyNames
java.lang.Object
com.openexchange.mail.mime.MIMESessionPropertyNames
public final class MIMESessionPropertyNames
- extends java.lang.Object
MIMESessionPropertyNames - Provides string constants to set corresponding properties in an instance of Session
- Author:
- Thorben Betten
|
Field Summary |
static java.lang.String |
PROP_ALLOWREADONLYSELECT
If false, attempts to open a folder read/write will fail if the SELECT command succeeds but indicates that the folder is READ-ONLY. |
static java.lang.String |
PROP_MAIL_DEBUG
The initial debug mode. |
static java.lang.String |
PROP_MAIL_IMAP_CONNECTIONPOOLSIZE
Maximum number of available connections in the connection pool. |
static java.lang.String |
PROP_MAIL_IMAP_CONNECTIONPOOLTIMEOUT
Timeout value in milliseconds for connection pool connections. |
static java.lang.String |
PROP_MAIL_MIME_BASE64_IGNOREERRORS
If set to "true", the BASE64 decoder will ignore errors in the encoded data, returning EOF. |
static java.lang.String |
PROP_MAIL_MIME_CHARSET
The mail.mime.charset System property can be used to specify the default MIME charset to use for encoded words and text parts that
don't otherwise specify a charset. |
static java.lang.String |
PROP_MAIL_MIME_DECODETEXT_STRICT
The mail.mime.decodetext.strict property controls decoding of MIME encoded words. |
static java.lang.String |
PROP_MAIL_MIME_ENCODEEOL_STRICT
The mail.mime.encodeeol.strict property controls the choice of Content-Transfer-Encoding for MIME parts that are not of type "text". |
static java.lang.Object |
PROP_MAIL_MIME_MULTIPART_ALLOWEMPTY
Normally, when writing out a MimeMultipart that contains no body parts, or when trying to parse a multipart message with no body
parts, a MessagingException is thrown. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_ALLOWREADONLYSELECT
public static final java.lang.String PROP_ALLOWREADONLYSELECT
- If false, attempts to open a folder read/write will fail if the SELECT command succeeds but indicates that the folder is READ-ONLY.
This sometimes indicates that the folder contents can'tbe changed, but the flags are per-user and can be changed, such as might be
the case for public shared folders. If true, such open attempts will succeed, allowing the flags to be changed. The getMode method on
the Folder object will return Folder.READ_ONLY in this case even though the open method specified Folder.READ_WRITE. Default is
false.
- See Also:
- Constant Field Values
PROP_MAIL_MIME_CHARSET
public static final java.lang.String PROP_MAIL_MIME_CHARSET
- The mail.mime.charset System property can be used to specify the default MIME charset to use for encoded words and text parts that
don't otherwise specify a charset. Normally, the default MIME charset is derived from the default Java charset, as specified in the
file.encoding System property. Most applications will have no need to explicitly set the default MIME charset. In cases where the
default MIME charset to be used for mail messages is different than the charset used for files stored on the system, this property
should be set.
- See Also:
- Constant Field Values
PROP_MAIL_IMAP_CONNECTIONPOOLTIMEOUT
public static final java.lang.String PROP_MAIL_IMAP_CONNECTIONPOOLTIMEOUT
- Timeout value in milliseconds for connection pool connections. Default is 45000 (45 seconds).
- See Also:
- Constant Field Values
PROP_MAIL_IMAP_CONNECTIONPOOLSIZE
public static final java.lang.String PROP_MAIL_IMAP_CONNECTIONPOOLSIZE
- Maximum number of available connections in the connection pool. Default is 1.
- See Also:
- Constant Field Values
PROP_MAIL_MIME_DECODETEXT_STRICT
public static final java.lang.String PROP_MAIL_MIME_DECODETEXT_STRICT
- The mail.mime.decodetext.strict property controls decoding of MIME encoded words. The MIME spec requires that encoded words start at
the beginning of a whitespace separated word. Some mailers incorrectly include encoded words in the middle of a word. If the
mail.mime.decodetext.strict System property is set to "false", an attempt will be made to decode these illegal encoded words. The
default is true.
- See Also:
- Constant Field Values
PROP_MAIL_MIME_ENCODEEOL_STRICT
public static final java.lang.String PROP_MAIL_MIME_ENCODEEOL_STRICT
- The mail.mime.encodeeol.strict property controls the choice of Content-Transfer-Encoding for MIME parts that are not of type "text".
Often such parts will contain textual data for which an encoding that allows normal end of line conventions is appropriate. In rare
cases, such a part will appear to contain entirely textual data, but will require an encoding that preserves CR and LF characters
without change. If the mail.mime.encodeeol.strict System property is set to "true", such an encoding will be used when necessary. The
default is false.
- See Also:
- Constant Field Values
PROP_MAIL_MIME_BASE64_IGNOREERRORS
public static final java.lang.String PROP_MAIL_MIME_BASE64_IGNOREERRORS
- If set to "true", the BASE64 decoder will ignore errors in the encoded data, returning EOF. This may be useful when dealing with
improperly encoded messages that contain extraneous data at the end of the encoded stream. Note however that errors anywhere in the
stream will cause the decoder to stop decoding so this should be used with extreme caution. The default is false.
- See Also:
- Constant Field Values
PROP_MAIL_DEBUG
public static final java.lang.String PROP_MAIL_DEBUG
- The initial debug mode. Default is false.
- See Also:
- Constant Field Values
PROP_MAIL_MIME_MULTIPART_ALLOWEMPTY
public static final java.lang.Object PROP_MAIL_MIME_MULTIPART_ALLOWEMPTY
- Normally, when writing out a MimeMultipart that contains no body parts, or when trying to parse a multipart message with no body
parts, a MessagingException is thrown. The MIME spec does not allow multipart content with no body parts. This System property may be
set to "true" to override this behavior. When writing out such a MimeMultipart, a single empty part will be included. When reading
such a multipart, a MimeMultipart will be created with no body parts. The default value of this property is false.