Sieve Envelope support in Archiveopteryx

The Envelope extension is an optional part of the base Sieve RFC. It governs the SMTP MAIL FROM and RCPT TO addresses used to deliver the message. Archiveopteryx, like most other Sieve implementations, supports Envelope fully.

This example files mail that was sent to into a special mailbox.

if envelope :all :is "to" "" { fileinto "work/webmaster"; }

Another way would be to test for the address in To or Cc:

if address :is :all ["To","Cc"] "" { fileinto "work/webmaster"; }

The former example looks at the address used in SMTP RCPT TO, the latter looks at the To and Cc addresses.

In case of questions, please write to

Relevant links

About this page

Last modified: 2010-11-19