Before you change the archive policy
You needmailbox-importer.manage or mailbox-importer.admin. Open Admin settings → Mailbox importer → Mailboxes → Settings and history for the mailbox. Prepare the document types and service-account access first.
Document types and keyword types are environment-specific. The names and IDs below are examples, not built-in types. Enter document type IDs in their fields and select keyword types by name in the mapping dropdowns. Confirm every mapping belongs to its destination document type and satisfies that type’s required fields, data types, masks, and keyword permissions.
Choose how the email is stored
Example: keep ordinary mail, split supplier invoices
Prepare these example destinations:Set the default
10. Configure any keywords required by that type.Add a rule
Set the matching conditions
supplier.example in Sender contains and invoice in Subject contains. Leave Recipient contains empty to accept any recipient.Choose the split format
30 and Attachment document type ID to 40.Map metadata to both destinations
subject, and choose Mail subject (#101). Under Attachment keyword mappings, choose Mail subject (#202) for Mail subject and Attachment filename (#203) for Attachment filename. These example keyword types must exist on the corresponding destination types.Save and verify

Supplier invoices uses HTML document type 30 and attachment type 40. The selected dropdowns show Mail subject (#101) for the mail, Mail subject (#202) for each attachment, and Attachment filename (#203) for its filename. This is the actual rule editor with fictional configuration.
How matching and order work
- Rules run from top to bottom; the first enabled match wins. You can add up to 25 rules.
- All filled conditions must match. Leaving a condition empty makes it unrestricted.
- Sender contains checks the sender address, Recipient contains checks any To/Cc/Bcc address present in the message metadata, and Subject contains checks the subject.
- Matching uses case-insensitive substrings. Conditions are not regular expressions, exact domain checks, or sender-authentication checks.
- Use Move up and Move down to order specific rules before general ones. An enabled rule with all three conditions empty matches every message and prevents later rules from being selected.
- Uncheck Rule enabled to retain a rule without using it. Remove rule removes it from the configuration when you save.
billing@supplier.example.invalid also contains supplier.example. Use these rules for classification; they do not establish that a message is trustworthy.
Map standard mail parameters to keywords
Each mapping is a searchable keyword dropdown, both in the default archive policy and in every rule. The label above the dropdown is the mail parameter; the selected option is the destination keyword type. You select where the parameter is stored, rather than entering a fixed keyword value.- Open the dropdown for the mail parameter, such as Mail subject.
- Type part of a keyword name or its ID in Search…. Search ignores case. Options show the name and ID, such as Mail subject (#101); use the ID to distinguish keyword types with the same name.
- Select the keyword type assigned as standalone on the destination document type. Repeat for each parameter you need, then select Save settings.
- To remove an optional mapping, open its dropdown, clear any search text, and choose Do not map. Save settings to apply the removal.

Searching for subject shows two keyword types with the same name. Choose the ID that belongs to the intended destination: #101 for Supplier mail, or #202 for Supplier attachments. This is the actual dropdown with fictional keyword types.
Extend the screenshot’s mappings
Suppose Supplier mail and Supplier attachments have the following additional standalone keyword types. Select these named options in the corresponding dropdowns:billing@supplier.example to intake@example.com, received at 2026-09-09T08:00:00Z, the mail document gets the sender in keyword 102, recipient in 103, and received time in 104. Each attachment gets the same metadata in 204, 205, and 206, alongside its own filename in 203.
The importer supplies date mappings in UTC using yyyy-MM-ddTHH:mm:ss, for example 2026-09-09T08:00:00, even though the start-time picker shows local time. Multiple recipients become multiple keyword values. Mapping several mail fields to the same keyword combines distinct values; check that this cardinality is suitable for the target keyword.
A missing source field does not manufacture a value for a required keyword. If a document type requires data that mail metadata cannot provide, resolve that requirement in the destination configuration before enabling import. A workflow starts after archiving and cannot repair a keyword validation failure that prevents document creation.
