Custom filters — Example of a custom filter

Overview

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.

Example headers

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

  1. Navigate to Message Filters.
  2. To the right of an address, click the Edit button to open the filter page.
  3. 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:
    Custom_Filter_Example.png
  4. Since this example is looking for something in the header, choose Headers and contains from the first two dropdowns.
  5. 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:
    .*texthere

  6. Choose the radio button Move it to folder:.
  7. Just under the radio button, type in the name of the folder you wish this email to be sent to.
  8. 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.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?