Hi all,
I'm trying to continue to create a recipe that matches on certain email
addy's and then executes a perl script to insert the data into a mysql
database... I got everything working okay to match on the ^TO condition,
however, it seems that most of the emails don't contain the address
anywhere but in the Received: header, and sometimes I can't even find them
in the Received headers (which is really weird). I modified the recipe to
look like this now, based upon some other messages I found in the mailing
list archive. Basically, any email addressed to something like
*editor(_at_)cts(_dot_)com should be caught. I tried sending a message with an
editor
address in the bcc but that didn't get caught... Unfortunately the emails I
usually get with these received headers slow down on fridays and weekends,
so I can't test it with a real one yet. It seems to be catching the
regular to-type headers because if I send an email with a To: or Cc: of
*editor(_at_)cts(_dot_)com, it gets caught and inserted into the database, it
is just
the received headers (and of course when it doesn't appear in a header at
all) that still aren't getting caught. Can anyone lend a hand?
:0
* (^TO_.|^Received:.*for <?)*editor(_at_)cts(_dot_)com
{
SUBJECT=`formail -zxSubject`
BODY=`formail -I ""`
:0bc:
| /www/cgi-bin/parse_editor_mail.cgi "$SUBJECT" "$BODY"
}
Jerry
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail