All conditions and actions
A rule consists of conditions (when does it apply?) and actions (what should happen?). There are 25 condition fields and 20 actions.
How to create your first rule is covered in Creating your first rule.
Conditions
Section titled “Conditions”Each condition checks one field of the incoming email. Multiple conditions can be combined.
Subject
Section titled “Subject”Checks the message subject.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| starts with | text |
| ends with | text |
| equals | text |
| does not equal | text |
| matches regex (Pro) | text |
Checks sender address or display name.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| equals | text |
| does not equal | text |
| domain ends with | text |
Sender name
Section titled “Sender name”Checks the visible sender name.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| equals | text |
Any recipient
Section titled “Any recipient”Checks To, Cc and Bcc together.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| equals | text |
Checks recipients in the To field.
| Comparison | Input |
|---|---|
| contains | text |
| equals | text |
| does not equal | text |
Checks recipients in the Cc field.
| Comparison | Input |
|---|---|
| contains | text |
| equals | text |
Checks recipients in the Bcc field.
| Comparison | Input |
|---|---|
| contains | text |
| equals | text |
Reply-To
Section titled “Reply-To”Checks Reply-To addresses or names.
| Comparison | Input |
|---|---|
| contains | text |
| equals | text |
Body Pro
Section titled “Body Pro”Searches the plain text or HTML content.
| Comparison | Input |
|---|---|
| contains | text (multi-line) |
| does not contain | text (multi-line) |
Raw headers Pro
Section titled “Raw headers Pro”Searches all headers (e.g. X-Spam-Flag).
| Comparison | Input |
|---|---|
| contains | header field and value |
| does not contain | header field and value |
| matches regex (Pro) | header field and value |
Mailbox / folder
Section titled “Mailbox / folder”Matches the mailbox the message is stored in.
| Comparison | Input |
|---|---|
| is | a folder |
| is not | a folder |
| is any of | multiple folders |
| is none of | multiple folders |
Mail account
Section titled “Mail account”Limits the rule to specific accounts.
| Comparison | Input |
|---|---|
| is | an account |
| is not | an account |
| is any of | multiple accounts |
| is none of | multiple accounts |
Flag color
Section titled “Flag color”Checks for a colored flag.
| Comparison | Input |
|---|---|
| has color | a color |
| does not have color | a color |
Has attachments
Section titled “Has attachments”Checks whether the message contains attachments.
| Comparison | Input |
|---|---|
| is | yes or no |
| is not | yes or no |
Has calendar invite
Section titled “Has calendar invite”Checks whether the message contains a calendar invitation (.ics / text/calendar).
| Comparison | Input |
|---|---|
| is | yes or no |
| is not | yes or no |
Attachment filename Pro
Section titled “Attachment filename Pro”Looks for attachment file names.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| starts with | text |
| ends with | text |
| equals | text |
| does not equal | text |
| matches regex (Pro) | text |
Attachment MIME type Pro
Section titled “Attachment MIME type Pro”Checks an attachment’s MIME type.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| equals | text |
| does not equal | text |
| starts with | text |
Attachment file extension Pro
Section titled “Attachment file extension Pro”Checks the file extension of attachments (e.g. pdf, docx, jpg).
| Comparison | Input |
|---|---|
| is | a choice from a list |
| is not | a choice from a list |
| is any of | text |
| contains text | text |
Compares the message size in kilobytes.
| Comparison | Input |
|---|---|
| at least (KB) | number |
| at most (KB) | number |
| greater than (KB) | number |
| less than (KB) | number |
Date received
Section titled “Date received”Compares when the message was received.
| Comparison | Input |
|---|---|
| before | a date |
| after | a date |
| within last | a duration |
PGP status
Section titled “PGP status”Checks PGP messages: whether an encrypted message could be decrypted and whether a signature is valid, also for messages that are only signed. The signature of a message from the first sync is only checked once you open it.
| Comparison | Input |
|---|---|
| is | a choice from a list |
| is not | a choice from a list |
Tags / labels
Section titled “Tags / labels”Checks local tags assigned to the message.
| Comparison | Input |
|---|---|
| contains tag | a tag |
| does not contain | a tag |
| contains any of | multiple tags |
Thread message count
Section titled “Thread message count”Compares how many mails are already in the thread.
| Comparison | Input |
|---|---|
| at least | number |
| at most | number |
| exactly | number |
Has note
Section titled “Has note”Checks whether the message has a note attached.
| Comparison | Input |
|---|---|
| is | yes or no |
| is not | yes or no |
Note text
Section titled “Note text”Searches within the note content.
| Comparison | Input |
|---|---|
| contains | text |
| does not contain | text |
| equals | text |
| starts with | text |
| ends with | text |
| matches regex (Pro) | text |
Actions
Section titled “Actions”When a rule matches, YouniqMail runs its actions in order.
| Action | Description | Input |
|---|---|---|
| Move to mailbox | Moves the message to another mailbox. | a folder |
| Copy to mailbox | Copies the message to an additional mailbox. | a folder |
| Move to trash | Moves the message to the trash folder. | no value |
| Archive | Moves the message to the archive. | no value |
| Mark as spam | Moves the message to the junk folder. | no value |
| Mark as read | Marks the message as read. | no value |
| Mark as unread | Marks the message as unread. | no value |
| Set flag color | Applies a colored flag. | a color |
| Clear flag color | Removes any colored flag. | no value |
| Add tag | Assigns an existing tag to the message. | a tag |
| Remove tag | Removes a tag from the message. | a tag |
| Set note | Stores a short internal note on the message. | text (multi-line) |
| In-app notice | Shows a notice in the YouniqMail window. | text |
| Play sound | Plays a short system beep. | no value |
| Send webhook (Pro) | Sends an HTTP request to a configured webhook endpoint. | a connected service |
| Add to calendar (Pro) | Creates a calendar event via CalDAV from the email. | a connected service |
| Run script (Pro) | Executes a configured local script or command. | a connected service |
| Send to Trello (Pro) | Creates a Trello card from the email on a configured board. | a connected service |
| Send to Asana (Pro) | Creates an Asana task from the email. | a connected service |
| Send to Notion (Pro) | Creates a Notion page from the email in a database. | a connected service |