using sieve to inform users of a new address

Ken Murchison ken at oceana.com
Thu May 13 10:09:31 EDT 2004


ali asad lotia wrote:

> sorry i am not at all familiar with sieve, i have read the rfc and the  
> white paper, but would benefit greatly from the expertise of the folks  
> in the list
> 
>> Add ':addresses "old email address without domain" option to vacation.
> 
> with the line above, for a user foo at bar.com who is migrating to  
> foo at baz.net would the script be:
> require "vacation";
>         if header :contains ["To", "Cc", "Bcc"] "foo at bar.com"
>         { vacation :addresses "foo"  "Please note, my new email address  
> is foo at baz.net.
>                 Please send email to this address in the future.";
>         }
> 
> wouldnt this send out email to all users instead of just those who send  
> mail to the old address? or does it only function based if the header  
> test is passed?
> or would this be the script:
> 
> require "vacation";
>         if header :contains ["To", "Cc", "Bcc"] "foo at bar.com"
>         { vacation :addresses "foo at bar.com"  "Please note, my new email  
> address is foo at baz.net.
>                 Please send email to this address in the future.";
>         }

Yes, you are correct.  I was thinking of something else when I replied. 
  The value(s) in :addresses are compared against the recipient 
header(s) to make sure that the messages was addressed directly to you.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list