This article explains how to create a simple message filter that moves an incoming email to a specific directory. The following example shows how to filter emails sent from an Apple Mail application.
This example only moves email. It does NOT teach the filters to learn what is and is not spam. To teach the filter to learn what is spam, you must log in to Webmail and manually tag the message.
This example shows how to filter mail sent by the Apple Mail application. When an email is sent by this application, the headers will show the following line:
X-Mailer: Apple Mail
The instructions below catch any messages with the same header line and move them into a specific folder.
Creating the custom filter
- Navigate to Message Filters.
- To the right of an address, click the Edit button to open the filter page.
- If you have not added filters yet, click the Add New Filter button.
- The add new filter page opens where you can set up a filter:
- Since this example is looking for something in the header, choose Headers and contains from the first two dropdowns.
- The third field is the exact content you're looking for. In this example it's X-Mailer: Apple Mail.
To ensure you catch the text, add and period and asterisk before the code like this:
- Choose the radio button Move it to folder:.
- Just under the radio button, type in the name of the folder you wish this email to be sent to.
- When finished creating your rule, click the Add Filter button at the bottom.
What to expect
If an email is sent to you from an Apple Mail application, it will now be moved to your custom Apple Mail Messages folder once received.
You can create header filters like this to match other emails, based on details in their headers. By reviewing the message headers of an email you would like to filter, you can create your own custom header-based filters.