HelpMail

How to set up email filters in mello

mello’s filters run on the mail server as each message arrives, so they work the same in the webmail, on your phone and in any mail app, whether anything is open or not. You set them up in Settings → Auto-reply, which also holds forwarding, blocked senders and your out-of-office reply. Everything on that tab saves as you change it: there’s no save button.

Add a filter

Each filter is one rule: If a line of the message contains some text, Then do something.

  1. Open Settings → Auto-reply and scroll down to Filters.
  2. Choose Add rule, or press +.
  3. After If, pick from, to or subject, and type the text it contains: an address, a domain such as @example.com, a name, or a word.
  4. After Then, pick what happens: move to a folder, mark read, delete, or forward to an address.
  5. For move to, pick the folder. For forward to, type the address.

The text matches anywhere in that line, and upper or lower case doesn’t matter. from matches the sender’s name as well as their address. to looks at the To line only, not at Cc. To remove a rule, choose the cross at the end of it.

To sort into a new folder, create the folder first: the menu lists only the folders you already have. A message moved by a filter is in that folder everywhere: on your phone, on your laptop and in the webmail.

How the rules are applied

Rules run from top to bottom, on each new message.

  • move to and delete end it. Once one of them matches, the rules below are skipped, so put the most specific rules first.
  • mark read and forward to don’t. The message goes on through the rules below, so you can mark a message read and still move it with a later rule.
  • forward to sends a copy, and keeps the message here too.
  • delete removes the message for good. It doesn’t go to the Trash, and you never see it. If you only want it out of the way, use move to with the Trash or an archive folder instead.

You can have up to 50 rules.

Forward all your mail

On the same tab, Forward my mail sends every incoming message on to another address, for example while you try mello alongside an old account.

  1. Turn on Forward my mail.
  2. Type the address in Forward to.
  3. Leave Keep a copy here on to keep the messages in mello as well. Turn it off, and they only go on, without being filtered here.

Mail the spam filter caught isn’t forwarded: it stays in your Junk folder.

Block a sender

Mail from a blocked sender goes straight to the Trash. They aren’t told, they get no auto-reply, and their mail is never forwarded.

  1. Open a message from them, open the more menu, and choose Block followed by their name. That message moves to the Trash too.
  2. Or open Settings → Auto-reply → Blocked senders, type an address, or @ and a domain to block a whole domain (@example.com), and choose Block.

To unblock someone, choose the cross next to them in the list. Their next messages arrive as usual; anything already in the Trash you move back yourself.

Blocking goes by the sender’s address. For spam that keeps changing address, use Report spam instead.

For power users: your own Sieve script

The settings page writes a Sieve script (RFC 5228) for you. If you want tests it doesn’t offer, such as several conditions at once, any header, or the message size, write your own and upload it with a ManageSieve client, for example the Sieve add-on for Thunderbird.

ServerPortSecurity
ManageSievemail.mello.mx4190STARTTLS
Usernameyour mello address

The password is your mello password. A few things to know first:

  • Supported extensions: fileinto, envelope, copy, imap4flags, relational, date (its currentdate test) and vacation. A script that requires any other, such as regex, body or include, is refused when you upload it. So a script can’t look at the message body.
  • One script runs at a time. The webmail’s own is called webmail. When you make yours the active one, the webmail’s rules, auto-reply, forwarding and blocked senders stop running.
  • The webmail takes over again when you save there. Changing the Auto-reply tab, the newsletter digest or your language, or blocking a sender from a message, makes webmail the active script again. Copy what you need from it into your own, and keep your changes in one place.
  • Don’t edit the webmail script by hand. The settings page rewrites it every time it saves.
  • Limits: up to 10 scripts, of up to 64 KB each.

What filters can’t do yet

  • Simple tests in the editor. One condition per rule (from, to or subject contains), with no “all of these” or “any of these”. Your own Sieve script can do more, within the extensions above.
  • Existing mail isn’t sorted. A rule acts on mail that arrives after you add it. Move what’s already in your mailbox yourself.
  • Filters aren’t in the CLI or the assistant. You set them in the webmail or with a ManageSieve client. The mello CLI and the assistant connector can change your out-of-office reply, but not your filters.

For newsletters, there’s a gentler option than a filter: the daily digest, in Settings → Notifications. See newsletters and subscriptions.

Still need help?

Write to hello@mello.mx with your mello address and what happened. If you can’t sign in, write from another address.