Hi Folks,
You helped me to understand what I was doing wrong in my last
foray into new procmail recipes, so maybe you can point me in
the right direction once again?
I set up a "sandbox" ala' Sean, but I'm having trouble matching
a couple of email addrs in the body of a message to use
them as To: addrs for an auto-response. I'm thinking that I'm
going to have to write a perl program to do what I want, but I'd
prefer to keep it simple and within the confines of procmail,
if at all possible. I want to match two addrs in the message
below,
This-soandso(_at_)somdom(_dot_)com
ThatsoandSo(_at_)somdom(_dot_)com
But I can't seem to figure out how to do this in a recipe.
As a majordomo listowner, I sometimes get requests to unsubscribe
someone from a "closed" list, which means I have to approve the
request. Sometimes I don't get to the request for a while, so I
am trying to get an auto-response to go back to the original
requestor.
Initially, the majordomo software answers their request with a
message that the request has been sent on to the listowner (me).
Then I get a message of the form (headers abbreviated here for brevity):
#######################################################################
From: majordomo(_at_)lists(_dot_)com
Subject: APPROVE e-list
Reply-To: majordomo(_at_)lists(_dot_)com
Date: Wed, 12 Nov 2003 12:44:31 -0800 (PST)
To: e-list-approval(_at_)lists(_dot_)com
--
So-and-so <This-soandso(_at_)somdom(_dot_)com> requests that you approve the
following:
unsubscribe e-list ThatsoandSo(_at_)somdom(_dot_)com
If you approve, please send a message such as the following back to
majordomo(_at_)lists(_dot_)com (with the appropriate PASSWORD filled in, of
course):
approve PASSWORD \
unsubscribe e-list \
ThatsoandSo(_at_)somdom(_dot_)com
[The above is broken into multiple lines to avoid mail reader linewrap
problems. Commands can be on one line, or multi-line with '\' escapes.]
If you disapprove, do nothing.
Thanks!
majordomo(_at_)lists(_dot_)com
#######################################################################
If I could match these two addresses, and then use them with
formail -I"To:<...>" then I could do my auto-response.
Can this be done in procmail????
Thanks,
deb
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail