RustPost

Using RustPost

Rules and out of office

Server-side mail filters with the visual rules editor or raw Sieve, ManageSieve, running rules on existing folders, and automatic replies.

On this page

Rules run on the server when mail arrives, so they work even when no app is open, and they apply to mail you read on your phone too. The webmail's editor writes them as a Sieve script; you can also edit the script directly or manage it with any ManageSieve app.

Open Settings → Mail → Rules, or choose Create rule on a message to start one from its sender and subject.

The Rules page with three rules: Newsletters, Forge notifications, and a disabled rule for big attachmentsThe Rules page with three rules: Newsletters, Forge notifications, and a disabled rule for big attachments

Making a rule

A rule has a name, conditions, actions and optional exceptions.

The rule editor: the condition Mailing list contains rustweekly.example, the actions Mark as read and Move to folder Receipts, and Stop processing more rules checkedThe rule editor: the condition Mailing list contains rustweekly.example, the actions Mark as read and Move to folder Receipts, and Stop processing more rules checked

Conditions (match all of them, or any of them):

ConditionTests
From, To or Cc, Subject, Mailing listcontains, doesn't contain, is, isn't
Header (any name)contains, doesn't contain, is, isn't, exists, doesn't exist
Message bodycontains, doesn't contain
Sizelarger or smaller than a number of KB or MB
Has attachment
Spam verdictthe server's spam decision

Actions: move to a folder, copy to a folder, delete (to Deleted), mark as read, flag, add a keyword, forward to up to four addresses (optionally keeping a copy), or discard permanently. Forwarding may be limited or turned off by your administrator.

Except if any of these: conditions that stop the rule from applying.

Stop processing more rules: later rules are skipped when this one applies.

A rule can have up to 10 conditions and 10 actions, and you can have up to 200 rules.

Managing rules

Rules run from top to bottom. From a rule's menu you can edit, duplicate, move it up or down, run it on a folder, or delete it. The switch next to each rule turns it on or off.

Running rules on existing mail

Run on a folder… applies a rule to messages already in a folder. It keeps running on the server after you close the window and shows its progress. Spam conditions never match existing mail, and forwarding is skipped.

Sieve scripts

Edit as script shows the Sieve text behind your rules. Check validates it and lists problems with their lines; Save activates it. Scripts lets you upload, download, rename and delete scripts and choose the active one.

A script made outside the editor (in another app, or edited by hand) opens as a script. Start over with rules goes back to the editor and keeps the old script as a backup.

ManageSieve

Desktop add-ons and command-line tools can manage the same scripts over ManageSieve on port 4190 with STARTTLS, using your address and password. Your administrator may have turned ManageSieve off.

Out of office

Settings → Mail → Out of office (or Automatic replies in the account menu):

  • turn automatic replies on or off;
  • optionally choose a start and an end date;
  • write a subject (by default, the original subject) and a plain-text message;
  • Reply to each sender once every N days: 7 by default, from 1 to 30 unless your administrator changed the limits.

No replies go to mailing lists, automated mail, mail in Junk, or senders who had you only in Bcc. While replies are on, a bar at the top of the webmail reminds you and lets you turn them off.

HTML replies and "reply only to my contacts" are not available.

When your administrator pauses filters

An administrator can pause a user's filters, for example while looking into a problem. The Rules and Out of office pages then show a banner, and nothing runs until the filters are resumed.

Rules shortcuts

KeysAction
↑ ↓Move between rules
Alt+↑ / Alt+↓Reorder
SpaceTurn on or off
EnterEdit
DeleteDelete
Shift+F10Menu
Ctrl+EnterSave (in the editor)
EscClose