Skip to content

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.

Each condition checks one field of the incoming email. Multiple conditions can be combined.

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

Checks the visible sender name.

Comparison Input
contains text
does not contain text
equals text

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

Checks Reply-To addresses or names.

Comparison Input
contains text
equals text

Searches the plain text or HTML content.

Comparison Input
contains text (multi-line)
does not contain text (multi-line)

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

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

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

Checks for a colored flag.

Comparison Input
has color a color
does not have color a color

Checks whether the message contains attachments.

Comparison Input
is yes or no
is not yes or no

Checks whether the message contains a calendar invitation (.ics / text/calendar).

Comparison Input
is yes or no
is not yes or no

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

Checks an attachment’s MIME type.

Comparison Input
contains text
does not contain text
equals text
does not equal text
starts with text

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

Compares when the message was received.

Comparison Input
before a date
after a date
within last a duration

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

Checks local tags assigned to the message.

Comparison Input
contains tag a tag
does not contain a tag
contains any of multiple tags

Compares how many mails are already in the thread.

Comparison Input
at least number
at most number
exactly number

Checks whether the message has a note attached.

Comparison Input
is yes or no
is not yes or no

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

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