Hexamail Guard Administration Guide - IMAP Account - Advanced


Folder Mapping


   Folders Mapping

Map folder
You can configure Hexamail Guard to remap email to new folders. Hexamail will automatically create folders that do not exist. Use wildcards to map all matching folders to a new folder name, for example *Sent* -> Sent Items to map all folders containing the string Sent to a new Sent Items folder The destination folder can also contain replacement tokens that hexamail will replace with information from the email being uploaded. Supported replacements are:
<year> - year from email date
<mon> - month name (short) from email date
<month> - month name (long) from email date
<monnum> - month number (1 - 12) from email date
<day> - month day (1 - 31) from email date
<weekday> - week day (Monday,Tuesday,Wednesday,Thursday,Friday) from email date
<wday> - week day (Mon,Tue,Wed,Thu,Fri) from email date
<from> - email MIME from address
<fromdomain> - email MIME from address domain (e.g domain.com from user1@domain.com)
<fromuser> - email MIME from address user part (e.g user1 from user1@domain.com)
<to> - email MIME to address
<todomain> - email MIME to address domain
<touser> - email MIME to address user part
<subject> - email subject
<subjectclean> - email subject with all numbers, start and end spaces and punctuation characters removed
<header_headername>- email header matching headername
<folder> - email original folder name (last part e.g. Customers/customer1 becomes just customer1)
<folderrpath> - email original folder name (full path, e.g. Customers/customer1 )
Example interface
Inbox:OtherMail *Sent*:Sent items Old Email:Archive *:Archive <year>/<folder;>/<fromdomain;> *:Archive <year>/<folderpath;>
Force folder
Force the email into a specific folder
Example interface


Ignore SSL Certificate errors
Ignore SSL Certificate errors
Example interface
Max push batch size
You can limit the total amount pushed per IMAP connection or session. Some servers may restrict the amount uploaded. This gives you some control to avoid being disconnected if you are uploading large volumes
Example interface
4 MBytes
Make MIME compliant
Some servers like Office365 insist on compliant MIME payloads when pushing email using IMAP APPEND commands. Hexamail normally just uploads the exact payload it received, however this may fail for sensitive servers. Hexamail then needs to reprocess and correct any email that are non compliant to ensure their acceptance by the server. This can break encryption, DKIM and other formatting, and require more processing power.
Example interface
Line Length
Some mail servers and in particular versions of Exchange accept line lengths of 1000 characters, other only 77 characters (Office365). You may receive a very descriptive error like "BAD Command Error. 10". Use this setting to control the maximum line length when pushing email up over IMAP to work around the bugs in Microsoft products.
Example interface
1000 Characters
77 Characters


Diagnostic Log
You can turn on diagnostic logging with this switch
Example interface