IMAP
The adapter receives, copies/moves, or deletes an email message in an Internet Message Access Protocol (IMAP) mailbox, sets a flag, or lists message headers in a folder of an IMAP mailbox.
The adapter supports S/MIME encrypted/signed messages and SSL encryption of the connection to the IMAP server (IMAPS). Any Java Mail Properties can be processed from a Properties file.
Note:
The default block size (16 KB) during message transfer can be set via the JavaMail system property mail.iMAP.fetchsize in the runtime environment of the X4 server (usually Java VM with application server) to optimize the download of emails via IMAP.
Example of the Jboss startup script, block size is set to 5 MB:
@set JAVA_OPTS=%JAVA_OPTS% -Dmail.imap.fetchsize=5242880
Properties
| Describes which operation the adapter performs. Possible values:
Note: You can forward the received message by directly connecting the IMAP adapter to the POP/SMTP adapter.
|
Parameters
| Main class of the adapter (do not change!) Possible values: de.softproject.integration.adapter.imap.Adapter: Main class (default) |
| IP address or host name of the IMAP server Possible values: Any valid string (for example, imap.1und1.de) |
| User name for the email account used Possible values: Any string |
| Password for the email account used Possible values: Any string |
| Specifies whether to use the OAuth 2.0 protocol for login. Possible values:
If OAuth 2.0 is to be used,
|
| Destination folder on the IMAP server (if the Operation property is set to Copy Message or Move Message) or folder whose messages are be listed (if the Operation property is set to List Messages) Possible values: Existing folder name (case-sensitive) Frequently used:
|
| Source folder for the Copy Message, Move Message, Receive Message, Set Flag, and Delete Message actions. Possible values: Existing folder name (case-sensitive) Frequently used:
|
| IMAP flag(s) used to identify an e-mail message; multiple flags are separated by semicolons (;) (if the Operation property is set to Set Flag) Possible values: Any flag (e.g. \Answered) |
| Message ID of the email including folder specification Possible values: Folder name and message ID (with angle brackets) (e.g., INBOX/<831921101.31255094008434.java mail.javamailuser@localhost>) |
| Message ID on the IMAP server Possible values: Any integer |
| Limit the number of messages to be listed if the Operation property is set to List Messages. The list starts with the oldest messages in the folder. Possible values: Any integer |
| Always encode messages attachments (multipart parts) using Base64 (if the Operation property is set to Receive Message) Possible values:
|
| Messages are encrypted with S/MIME (Multipart/Encrypted) Possible values:
|
| Messages are signed with S/MIME (Multipart/Signed) Possible values:
|
| Path to a valid key/certificate file in the PKCS#12 format Possible values: Any valid path specification in the local file system of the X4 Server (e.g. %USER_COLLECTION\PROJECT\FOLDER\KEY.p12) |
| Password/passphrase to the key/certificate in PKCS#12 format that you specified in the Pkcs12 parameter. Possible values: Any valid string |
| Port of the IMAP server Possible values:
|
| Enable SSL encryption for the connection to the IMAP server Possible values:
|
| URL to a properties file (XML or text) that can contain any Java Mail Properties Possible values:
|
| Format of the properties file specified in the Possible values:
|
Status values
| The operation was successful. |
| The operation was performed, but no result was found or no data was changed. |
| The operation could not be performed. |