I'm looking for a recipe that will allow me to send change of address
responses to incoming messages (and redirect to the new address).
IE:
mail to user(_at_)combdyn(_dot_)com is forwarded to
user(_at_)cdlsystems(_dot_)com
and a message is sent to the post informing them of this fact.
The following recipe should do what you want. It will match on any email
sent to 'user(_at_)combdyn(_dot_)com' and send an email off with the new
subject of
'My NEW email address', stick the contents of the file 'new-email-address'
in the body of the email and send it on its way. It will then forward the
original email to 'user(_at_)cdlsystems(_dot_)com'. Of course, all the "normal"
variables (e.g., $FORMAIL, $SENDMAIL, SHELL, PATH, etc.) need to be set up
as appropriate for your system, but this should work pretty much with
little modification. Let me know if you have any probs.
:0c
* ^TO_user(_at_)combdyn\(_dot_)com
| ($FORMAIL -r -i"Subject: My NEW email address" \
; cat new-email-address) | $SENDMAIL -oi -t
:0a
! user(_at_)cdlsystems(_dot_)com
Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91 49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------