procmail
[Top] [All Lists]

Re: Self-Modifying .procmailrc

1997-10-07 08:22:34
| Mon 97-10-06 Timothy J Luoma <luomat(_at_)peak(_dot_)org> list.procmail
|
|
| # look for the file to tell us whether or not to forward mail or not
| # if the file exists, forward the mail
| :0c
| * ? test -r $HOME/.forwardmail
| ! me(_at_)elsewhere(_dot_)com

[code]

This is great! But whatabout remote-forward-control? I want to
send mail from the current account and get mail forwarded somewhere
according to the Reply-To address:

        From: me(_at_)remote(_dot_)com
        Subject: forward-on SOME-MAGIG-PASSWORD-STRING
        Reply-To: ThisAccount(_at_)here(_dot_)com

The procmail would see if SOME-MAGIG-PASSWORD-STRING matches
and set the current forwarding to ThisAccount(_at_)here(_dot_)com(_dot_)

It would be great if the procmail responded to "me(_at_)remote(_dot_)com" that
"Forward now pointing to ThisAccount(_at_)here(_dot_)com" or "You have no
permission to change Forwarding" if the SOME-MAGIG-PASSWORD-STRING is
invalid.

How's that done?
jari


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