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 webmaster@example.com into a special mailbox.

if envelope :all :is "to" "webmaster@example.com" { fileinto "work/webmaster"; }

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

if address :is :all ["To","Cc"] "webmaster@example.com" { 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 info@aox.org.

Relevant links

About this page

Last modified: 2010-11-19
Location: aox.org/sieve/envelope