diff options
Diffstat (limited to 'pigeonhole/examples/subaddress.rfc5233.sieve')
-rw-r--r-- | pigeonhole/examples/subaddress.rfc5233.sieve | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pigeonhole/examples/subaddress.rfc5233.sieve b/pigeonhole/examples/subaddress.rfc5233.sieve new file mode 100644 index 0000000..9e0177c --- /dev/null +++ b/pigeonhole/examples/subaddress.rfc5233.sieve @@ -0,0 +1,23 @@ +require ["envelope", "subaddress", "fileinto"]; + +# In this example the same user account receives mail for both +# "ken@example.com" and "postmaster@example.com" + +# File all messages to postmaster into a single mailbox, +# ignoring the :detail part. +if envelope :user "to" "postmaster" { + fileinto "inbox.postmaster"; + stop; +} + +# File mailing list messages (subscribed as "ken+mta-filters"). +if envelope :detail "to" "mta-filters" { + fileinto "inbox.ietf-mta-filters"; +} + +# Redirect all mail sent to "ken+foo". +if envelope :detail "to" "foo" { + redirect "ken@example.net"; +} + + |