using sieve to inform users of a new address

Ken Murchison ken at oceana.com
Thu May 13 07:33:52 EDT 2004


ali asad lotia wrote:

> hello folks
> i was wondering if it is possible to write a sieve script that sends  
> mail to the address contained in the from header based on the  
> information in the to header.
> i am transitioning someone over to a new email account and so am  
> forwarding all mail sent to her old address to this new address. i  
> would like to send out a message to anyone sending mail to the old  
> address that informs them of the new address. i used the following  
> sieve script for that:
> 
> require "vacation";
>         if header :contains "to" "enter old email address"
>         { vacation "Please note, my new email address is  
> NEW-EMAIL-ADDRESS.
>                 Please send email to this address in the future. ";
>         }
> it does not seem to send out email as i would like. any tips.

Add ':addresses "old email address without domain" option to vacation.

-- 
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