1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Sort incoming emails according to rules (Sieve filters)
This guide explains how to create sorting rules to automatically classify your incoming emails according to certain conditions.
Rules for What Purpose
These rules allow for the following automatic actions:
- Delete or move messages from email addresses you no longer wish to see
- Forward emails from one email address to your spouse/partner so that you both receive them
- Copy messages containing specific keywords to a folder
- etc.
Unlike sorting rules offered within email software (Microsoft Outlook, Mozilla Thunderbird, Apple Mail...), these rules will act directly on the server of your email boxes even before the IMAP connection.
If you are using email software configured in POP mode, in parallel with Mail, messages classified into folders will no longer be downloaded by your software.
Indeed, the POP protocol only retrieves messages that are in your main inbox.
To view classified messages, it will be necessary to use the IMAP protocol or only Mail.
Accessing Rules from Mail Service
To access the sorting filters for your Infomaniak mailbox:
- Login to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface (or navigate through the left side menu, for example)
- Select Mail Service (under Collaborative Tools universe)
- Click on the name of the relevant item in the displayed table
- Click on the relevant email address in the displayed table
- Click on the Filters and Rules tab or from the left side menu
Accessing Rules from Mail
Prerequisites
- have a valid access to Infomaniak Mail in which the email address is linked
- have permission to change the password of the address: if you had been invited to Mail to manage your address, it is possible that the Mail Service manager has revoked this right from their admin account
To access the sorting filters for your Infomaniak mailbox:
- Login to Infomaniak Mail (mail.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface
- Check or select the relevant email address from the drop-down menu
- Click on Filters and Rules
Setting a Rule Based on a Received Email
You can also create a rule directly from the received email:
- Login to Infomaniak Mail (mail.infomaniak.com) from a web browser like Brave or Firefox
- Open the message from the relevant sender
- Click on the action menu â‹® at the top right of the open message
- Choose Create a rule to open the creation wizard pre-filled with elements from the message
Configuring Filters & Rules
Several actions are available:
- Click on the Add a rule button in Standard mode to create filters using a creation form or in Expert Mode to import a Sieve language file
- Enable/disable Infomaniak anti-spam filter
- Enable/disable Infomaniak advertising filter
The different conditions available for sorting filters are presented in this guide (click here).
Once a filter is created in Standard or Expert Mode, click Continue to activate it. These settings can be modified whenever you want at any time.
If there are already sorting filters, the button to add them is located at the top right of the table:
Information on Advanced Mode
Advanced mode requires the use of the Sieve language. By activating this mode, existing rules will be retained but deactivated.
Example of the fileinto function: the following code sorts all Facebook messages into the "fb" folder and all messages with an unsubscribe link into the "nl" folder. If you need to mention a sub-folder, use the / separator (as in the second example) but there is no need to specify INBOX in your codes.
require ["fileinto"];
if address :contains "from" "facebook.com" {
fileinto "fb";
} elsif header :matches "List-Unsubscribe" "*" {
fileinto "nl";
} else {
keep;
}
Second example: code to modify the subject based on the From (add a prefix to the subject when an email passes the filter, for example).
require ["fileinto", "editheader", "variables", "regex"];
if address "sender" "owner-scientific-linux-devel at LISTSERV.FNAL.GOV" {
if header :regex "subject" "((Re|Fwd): *)\\[SCIENTIFIC-LINUX-DEVEL\\]
*(.*)" {
deleteheader "Subject";
addheader "Subject" "${1}${3}";
}
addheader "List-Post" "
fileinto "Mail List/SL-Devel";
}
Free Mailbox @ik.me (+ etik.com, etc.)
With the free mailbox @ik.me (+ etik.com, etc.), you only have the ability to create simple rules, which have restrictions. For example, it is not possible to create a filter to forward an email to another email address. For a complete experience, unlock your Free Infomaniak Email!