Filters and the vacation reply

Both are per mailbox and are set under Settings. Everyone who may open the mailbox sees and can change them.

Filters

Filters sort new mail as it arrives. A filter is a list of conditions, a choice of matching all or any of them, and a list of actions.

This is not Sieve. Kantoor's filters are a small fixed list of conditions and actions, edited in the web interface. They are not stored or exchanged as Sieve scripts, and an IMAP or ManageSieve client cannot read or change them.

Conditions

FieldComparisons
Fromcontains, is exactly (the address or the name)
To or Cccontains, is exactly
Subjectcontains, is exactly
List-Idcontains, is exactly (never matches mail without the header)
Has an attachmentyes or no

Comparisons ignore upper and lower case. A filter with no conditions never matches.

Actions

Move to a folder, mark as read, star, move to Trash, and stop processing. A filter has at most 10 conditions and 5 actions, and a mailbox at most 50 filters.

Order

Filters run from the top of the list down. For every filter that is switched on and matches, its actions run in order. If several filters move the message, the last move wins; flags from all of them are added. Stop processing ends the run after that filter's other actions. Use the arrows to reorder and Switch off to keep a filter without using it.

If the target folder no longer exists, or there is no Trash folder, the message goes to the inbox: a filter never loses mail.

When filters run

Filters run when the mail source delivers a message, after the over-quota check and before the message becomes visible. The message is filed straight into its destination folder with its flags, and gets its UID and modification sequence there like any other delivery to that folder, so IMAP clients, POP3 and the webmail see it as an ordinary delivery. Moving mail yourself, copying, appending from an IMAP client and sending do not run filters.

Two cases are limited:

  • Mail held over quota is not filtered; it goes to the inbox when it is released.
  • A push that carries only metadata (a notify-only push) is filtered on what it says: the envelope sender and the subject. The conditions that need the whole message (to, Cc, List-Id, attachments) do not match then.

Test against a recent message

Below the list you can choose one of the 20 latest messages. Kantoor shows which filters would match it, where it would go and which flags it would get. The test changes nothing.

Vacation reply

A mailbox can send one automatic reply to people who write to it while you are away. Set the message, the optional first and last day (inclusive, in your time zone), and how many days must pass before the same sender is answered again (7 by default, 1 to 30).

The reply follows RFC 3834. It is not sent when the incoming message

  • has an Auto-Submitted header other than no;
  • has Precedence: bulk, list or junk;
  • has any List- header (a mailing list);
  • has an empty return path;
  • is from MAILER-DAEMON, or from an owner-... or ...-request address;
  • does not have your mailbox address in To or Cc (it reached you by Bcc or through a list);
  • is from the mailbox itself;
  • was filed in Trash or Junk by a filter.

The same sender is answered at most once in the interval, counted per mailbox and without regard to the case of the address. A failed send does not use up the interval. Mail held over quota, and notify-only pushes (which have no headers to check), are not answered. Duplicate pushes are not answered twice.

The reply is sent through the mail source as your default identity for the mailbox. It has Auto-Submitted: auto-replied and Precedence: bulk, refers to the original with In-Reply-To and References, and is kept in the mail source for 7 days. It is not stored in your Sent folder.

The reply is sent with an empty return path (<>), as RFC 3834 asks, so that a failed delivery of it can never bounce back to you. This needs a Karta that knows the auto_reply option; with an older Karta the reply carries the mailbox address as its envelope sender instead. The other protections against reply loops apply either way, including Auto-Submitted on the reply itself.