Configuring the IMAP mail adapter
The validity of installed certificates is checked once every 24 hours. The first check is conducted 24 hours after the adapter is enabled.
Adapter type: ro-adapter-imap[baob201402:version]
To configure the IMAP mail adapter, see Configuring base adapters.
The following table describes the IMAP mail adapter configuration elements that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the UI label column.
Configuration node elements for the IMAP mail adapter
The following figures show XML templates of the adapter configuration for the IMAP adapter for a single target.
XML template one of the IMAP adapter configuration for a single target
<target></target>
<port></port>
<user-name></user-name>
<password encryption-type=""></password>
<character-set></character-set>
<javamail-debug></javamail-debug>
<email-address></email-address>
<protocol>imap</protocol>
<refresh></refresh>
<mail-timeout></mail-timeout>
<connection-timeout></connection-timeout>
<process-all-unread-mails></process-all-unread-mails>
<disable-auth-login></disable-auth-login>
<disable-auth-plain></disable-auth-plain>
<ignore-attachments></ignore-attachments>
<create-subdirectory></create-subdirectory>
<attachment-download-directory></attachment-download-directory>
<attachment-overwrite-existing></attachment-overwrite-existing>
<attachment-ttl></attachment-ttl>
<max-attachment-size></max-attachment-size>
<max-pool-threads></max-pool-threads>
<delete-attachments-on-exit></delete-attachments-on-exit>
<disk-cleanup-interval></disk-cleanup-interval>
<file-name-filter>
<file-name></file-name>
</file-name-filter>
<file-type-filter>
<file-type></file-type>
</file-type-filter>
<use-ssl-certificate></use-ssl-certificate>
<allow-unsigned-certificate></allow-unsigned-certificate>
<install-certificate></install-certificate>
<passphrase></passphrase>
<ignore-peer-name-in-attachment></ignore-peer-name-in-attachment>
<expand-plaintext-attachment></expand-plaintext-attachment>
<expand-htmltext-attachment></expand-htmltext-attachment>
<preferred-bodypart-text-format>Plain</preferred-bodypart-text-format>
</config>
XML template two of the IMAP adapter configuration for a single target
<config>
..........................
</config>
</configs>
The following figure shows an XML sample of the IMAP adapter configuration for a single target.
XML sample of the IMAP adapter configuration for a single target
<target>imap.runbox.com</target>
<port>993</port>
<user-name>testname</user-name>
<password encryption-type="Plain">test</password>
<character-set>UTF-8</character-set>
<javamail-debug>false</javamail-debug>
<email-address>test@runbox.com</email-address>
<protocol>imap</protocol>
<refresh>10</refresh>
<mail-timeout/>
<connection-timeout>60</connection-timeout>
<process-all-unread-mails>false</process-all-unread-mails>
<disable-auth-login>false</disable-auth-login>
<disable-auth-plain>false</disable-auth-plain>
<delete-after-read>false</delete-after-read>
<max-messages-per-connection>20000</max-messages-per-connection>
<expand-plaintext-attachment>true</expand-plaintext-attachment>
<expand-htmltext-attachment>true</expand-htmltext-attachment>
<ignore-peer-name-in-attachment>true</ignore-peer-name-in-attachment >
<ignore-peer-name-in-attachment>true</ignore-peer-name-in-attachment>
</config>
The following figure shows an XML sample of the IMAP adapter configuration for multiple targets.
XML sample of the IMAP adapter configuration for multiple targets
<config name="config1">
<target>secure.runbox.com</target>
<port>993</port>
<user-name>sample_name</user-name>
<password>sample_password</password>
<javamail-debug>false</javamail-debug>
<email-address>sample_name@runbox.com</email-address>
<protocol>imap</protocol>
<refresh>20</refresh>
<mail-timeout>10</mail-timeout>
<connection-timeout>30</connection-timeout>
<disable-auth-login>false</disable-auth-login>
<disable-auth-plain>false</disable-auth-plain>
<ignore-attachments>false</ignore-attachments>
<create-subdirectory>true</create-subdirectory>
<attachment-download-directory>C:\\DownloadAttachments\</attachment-download-directory>
<attachment-overwrite-existing>true</attachment-overwrite-existing>
<attachment-ttl>1d</attachment-ttl>
<max-attachment-size>5</max-attachment-size>
<max-pool-threads>3</max-pool-threads>
<delete-attachments-on-exit>false</delete-attachments-on-exit>
<disk-cleanup-interval>10m</disk-cleanup-interval>
<file-name-filter>
<file-name>a*</file-name>
</file-name-filter>
<file-type-filter>
<file-type>pdf</file-type>
</file-type-filter>
<use-ssl-certificate>true</use-ssl-certificate>
<allow-unsigned-certificate>true</allow-unsigned-certificate>
<install-certificate>false</install-certificate>
<passphrase>changeit</passphrase>
<ignore-peer-name-in-attachment>false</ignore-peer-name-in-attachment>
</config>
<config name="config2">
<target>imap.runbox.com</target>
<port>143</port>
<user-name>imap_test</user-name>
<password>password</password>
<javamail-debug>true</javamail-debug>
<email-address>imap_test@runbox.com</email-address>
<protocol>imap</protocol>
<refresh>30</refresh>
<mail-timeout>30</mail-timeout>
<connection-timeout>60</connection-timeout>
<disable-auth-login>true</disable-auth-login>
<disable-auth-plain>true</disable-auth-plain>
<ignore-attachments>false</ignore-attachments>
<create-subdirectory>false</create-subdirectory>
<attachment-download-directory>C:\Attachments\</attachment-download-directory>
<attachment-overwrite-existing>true</attachment-overwrite-existing>
<attachment-ttl>1d</attachment-ttl>
<max-attachment-size>8</max-attachment-size>
<max-pool-threads>1</max-pool-threads>
<delete-attachments-on-exit>true</delete-attachments-on-exit>
<disk-cleanup-interval>5m</disk-cleanup-interval>
<file-name-filter>
<file-name>T*</file-name>
</file-name-filter>
<file-type-filter>
<file-type>html</file-type>
</file-type-filter>
<use-ssl-certificate>false</use-ssl-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<install-certificate>false</install-certificate>
<passphrase></passphrase>
<ignore-peer-name-in-attachment>true</ignore-peer-name-in-attachment>
</config>
</configs>
The following figure shows an XML sample of the IMAP adapter configuration with expand plain text or HTML settings.
XML sample of the IMAP adapter configuration with expand plain text or HTML settings
<target>imap.runbox.com</target>
<user-name>user1</user-name>
<password encryption-type="Plain">1234</password>
<refresh>20</refresh>
<protocol>imap</protocol>
<email-address>user1@runbox.com</email-address>
<ignore-attachments>false</ignore-attachments>
<expand-plaintext-attachment>true</expand-plaintext-attachment>
<expand-htmltext-attachment>true</expand-htmltext-attachment>
<attachment-download-directory>C:\download_directory</attachment-download-directory>
<create-subdirectory>true</create-subdirectory>
</config>