1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Sort incoming e-mails according to rules (Sieve filters)
This guide explains how to create rules to automatically organize your incoming emails based on certain conditions.
Rules for what purpose
These rules allow for the following automatic actions:
- delete or move messages from email addresses you no longer want to see
- forward emails from a specific email address to your partner, so that both of you receive them
- copy messages containing a specific keyword to a folder
- etc.
Unlike filtering rules within email client software (Microsoft Outlook, Mozilla Thunderbird, Apple Mail, etc.), these rules will act directly on the server of your email boxes before the IMAP connection.
If you are using email client software configured in POP mode alongside Mail, the messages classified into folders will not be downloaded by your software.
Indeed, the POP protocol only retrieves messages in your main inbox.
To view classified messages, you will need to use IMAP protocol or only Mail.
Access Rules from Mail Service
To access sorting filters for your Infomaniak email:
- Log in 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 using the left sidebar menu, for example)
- Choose Mail Service (universe Collaborative Tools)
- 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 sidebar menu
Access Rules from Mail
Prerequisites
- have a valid access to Mail Infomaniak where the email address is attached
- have permission to modify the password of the address: if you were invited to Mail to manage your address, it is possible that the Mail Service manager has removed this right from their admin account
To access sorting filters for your Infomaniak email:
- Log in to Mail Infomaniak (mail.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface
- Click on Email Addresses
- Check or select the relevant email address from the drop-down menu
- Click on the blue Add button (in the Sites section)
- Click on Filters and Rules under Email Address Settings
Set a Rule Based on a Received Email
You can also create a rule directly from the received email:
- Log in to Mail Infomaniak (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 the message's elements
Configure Filters & Rules
Several actions are available:
- Click on the Add Rule button in Standard mode to create filters using a creation form or in Expert Mode to import a file in Sieve language
- Enable/disable the Infomaniak spam filter
- Enable/disable the 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 about 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 categorizes all Facebook messages into the "fb" folder and all messages with an unsubscribe link into the "nl" folder. If you need to mention a subfolder, 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 that modifies the subject based on the From (adds 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 @ik.me Email (+ etik.com, etc.)
With the free @ik.me email (+ etik.com, etc.), you can only 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!