Okay, so I'm diddling with variants on that recipe that crashes
procmail, trying to get it to work.
Seeing some comments on using the "f" flag for non-delivery scripts,
I tried using it in appropriate places instead of "c" to achieve my end.
Now, I have formail sending mail to "foo(_at_)bar" instead of the
sender... but "foo(_at_)bar" doesn't appear anywhere in my recipe!
What gives?
Here's the most recent version of the offending recipe:
#
# Handle potentially Junk E-Mail from mailmasher.com
#
# Match on any email to or from mailmasher.com
:0 H
* (^Return-Path:|^Received:|^Message-ID:|^Reply-To:|^From:).*[(@
](mailmasher\.com)
{
# Indicate that a match was found -- the value of $FOUND is later assigned to
$DELIVER
FOUND=on
# log all matches
:0 c
mm_junk.log
# Is the complaint feature turned on?
:0 c
* COMPLAIN ?? on
{
# if so, first make a temporary copy of the email
:0 f
| cat > $MAILDIR/spam.tmp
# then form a reply from just the header, with appropriate substitutions;
concatenate an autoresponse
# message on the end of it; add a copy of the original email, with full
headers; then add a .signature
# and email it back to sender and to a fixed list of Cc: addresses
:0 fh
| ($FORMAIL -rt -i"Subject: HI, MailMasher user! I'll get back to you."
-i"Errors-To: tbetz(_at_)pobox(_dot_)com" \
-i "Reply-To: tbetz(_at_)pobox(_dot_)com" -A"X-Loop:
tbetz(_at_)panix(_dot_)com" \
-i "Cc: tbetz(_at_)pobox(_dot_)com"; \
cat $PMDIR/autoresponse.mm $MAILDIR/spam.tmp; \
echo "";\
echo "-- ";\
cat $HOME/.signature \
) | $SENDMAIL -oi -t
}
}
This is formatting and bouncing the message properly, except for the
To: address. Oh, and it still causes procmail to crash and dump
core... but long after the message is bounced.
Here's a sample of the misdirected bounce it generates:
Received: from poboxer.pobox.com (poboxer.pobox.com [208.210.124.21])
by mail1.panix.com (8.7.5/8.7.1/PanixM1.0+) with ESMTP id WAA14284 for
<tbetz(_at_)panix(_dot_)com>; Mon, 27 Jan 1997 22:20:02 -0500 (EST)
Received: from panix.com (panix.com [198.7.0.2]) by poboxer.pobox.com
(8.8.4/8.7.1) with ESMTP id WAA28549 for <tbetz(_at_)pobox(_dot_)com>; Mon, 27
Jan 1997 22:19:59 -0500
Received: (from tbetz(_at_)localhost) by panix.com (8.8.5/8.7/PanixU1.3) id
WAA22752; Mon, 27 Jan 1997 22:19:47 -0500 (EST)
Date: Mon, 27 Jan 1997 22:19:47 -0500 (EST)
From: Tom Betz <tbetz(_at_)panix(_dot_)com>
Message-Id: <199701280319(_dot_)WAA22752(_at_)panix(_dot_)com>
To: foo(_at_)bar
X-Loop: tbetz(_at_)panix(_dot_)com
Subject: HI, MailMasher user! I'll get back to you.
Errors-To: tbetz(_at_)pobox(_dot_)com
Reply-To: tbetz(_at_)pobox(_dot_)com
Cc: tbetz(_at_)pobox(_dot_)com
X-UIDL: 47624bb20da3a6030e7cb73c30029c9e
Status: RO
For no particular reason, I'm filtering MailMasher users.
I'll read this, eventually... but I'm bouncing back a copy so
you know what you sent me.
From privet(_at_)mailmasher(_dot_)com Mon Jan 27 22:19:41 1997
Received: from mailmasher.com (daemon(_at_)fat(_dot_)doobie(_dot_)com
[204.62.130.103])
by mail2.panix.com (8.7.5/8.7.1/PanixM1.0) with ESMTP id WAA29374 for
<tbetz(_at_)panix(_dot_)com>; Mon, 27 Jan 1997 22:19:39 -0500 (EST)
Received: (from daemon(_at_)localhost) by mailmasher.com (8.8.5/8.6.9) id
TAA25711
for tbetz(_at_)panix(_dot_)com; Mon, 27 Jan 1997 19:19:35 -0800
Date: Mon, 27 Jan 1997 19:19:35 -0800
Message-Id: <199701280319(_dot_)TAA25711(_at_)mailmasher(_dot_)com>
From: privet <privet(_at_)mailmasher(_dot_)com>
To: tbetz(_at_)panix(_dot_)com
Subject: Testing
Testing Testing
--
Tom Betz (914) 375-1510
--
|We have tried ignorance for/ Tom Betz (914) 375-1510 |
|a very long time, and it's/ Want to sent me email? Read this first: |
|time we tried education. /<http://www.panix.com/~tbetz/mailterms.html>|
|<http://www.pobox.com/~tbetz>\ I mock up my reactive mind twice daily.|