1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Sort incoming emails according to the rules (sieve filters)
This guide explains how to create rules to automatically classify your incoming emails according to certain conditions.
Rules for what usage
In particular, these rules allow the following automatic actions:
- delete or move messages form email addresses that you no longer want to see
- Transfer emails to your partner from an email address so that you both receive them
- Copy messages that contain a specific keyword to a folder
- etc.
Unlike the sorting rules provided within webmail software (Microsoft Outlook, Mozilla Thunderbird, Apple Mail, etc.), these rules will act directly on the server of your mailboxes.
If you use a webmail software configured as POP in parallel to Mail, the messages stored in folders will no longer be downloaded by your software.
The POP protocol only show messages in your main inbox.
To consult the classified messages, it will be necessary to use the IMAP protocol or only Mail.
Access the rules via the Email Service
- Go to
Email Service
- Click on the Email Service / domain name concerned
- Via the Email Service control panel, click on the email address concerned
- Click on the Filters and rules tab or on Filters and rules in the left-hand side menu
Access the rules via Mail
- open Mail (mail.infomaniak.com)
- click on the
icon at the top right and select Email addresses
- if necessary, select the email address concerned using the drop-down menu
- under Actions on my address, click on the
iconFilters and rules
If you do not have access...
- Check that you have a valid access to Mail with which the email address is associated
- Do you have the permission to manage this setting? If you were invited to Mail to manage your address, the Email Service administrator may have withdrawn this right when sending the invitation (find out more (click here)
You can also create a rule directly via the email received:
- Open Mail (mail.infomaniak.com)
- Open the message from the sender concerned
- Click on the
icon at the top right of the open message
- Select Create a rule to open the creation wizard which will be pre-completed with the elements of the message
Configure the rules
- click on the Add a rule button in Standard mode or enable Expert mode to import a Sieve file
- several actions are available:
- Enable/disable the Infomaniak spam filter
- Enable/disable the Infomaniak advertising filter
- Create filters in Standard mode (using a creation form) or Expert mode (using Sieve language)
- once a filter has been created in Standard or expert mode click on Continue to enable it
- These settings can be modified at any time
Information concerning Advanced mode
Advanced mode requires use of the Sieve language. By enabling this mode, the existing rules will be retained but disabled.
Example of the fileinto function: the following code makes it possible to classify all the Facebook messages into the "fb" folder and all the 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 no need to indicate 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 making it possible to modify the subject according to the From (for example add a prefix in the subject when an e-mail passes the filter).
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";
}
Note for users of a free version
Via your free Infomaniak email, you can only create simple rules with certain restrictions. For example, you cannot create a filter to transfer an email to another email address. For a full experience, unlock your free Infomaniak email!