procmail
[Top] [All Lists]

Formula question . . .

1999-04-14 16:51:50

Hi,

     I'm trying to cobble together a formula to selectively answer
emails that have been forwarded from old email addresses.

There are 3 old addresses; can these be combined in one line?  Any
other problems with this that you see?

:0 Whc: notify.lock
* ^To:.(*jmleveron*|*john\@(soon|kosher).com)
* !^FROM_DAEMON
* !^X-Loop: webmaster\(_at_)glock(_dot_)missouri(_dot_)edu
| formail -rD 8192 notify.cache

  :0 ehc         # if the name was not in the cache
    | (formail -rA"Precedence: junk" \
       -A"X-Loop: webmaster(_at_)glock(_dot_)missouri(_dot_)edu" ; \
     echo -e "\nHi!\n\n    The mail you sent me was sent to an old
email address.  Please update your records"; \
     echo -e "to show my new address :  
webmaster(_at_)glock(_dot_)missouri(_dot_)edu
\n\r\n\r";
    ) | $SENDMAIL -oi -t
    Old


Yes, for the last part "Old", I'd like them to go into a separate
folder.

         Best regards, John.

<Prev in Thread] Current Thread [Next in Thread>