This may be a pretty simple mistake, I don't see why the first recipe works
perfectly fine:
:0 B
* Content-Type: image/
| (formail \
-rA "Precedence: junk" \
-I "From: Mail Delivery Subsystem
<MAILER-DAEMON(_at_)atmedia(_dot_)net>" \
-I "Subject: Non-delivery notification" \
-A "X-Loop: mailloop(_at_)atmedia(_dot_)net" ; \
echo "This is an automated message regarding the non-delivery
of your message."; \
echo "Your message contains a binary attachment, which the
recipient has chosen "; \
echo "not to accept, and has consequently been discarded. "; \
echo " "; \
echo "postmaster(_at_)atmedia(_dot_)net" \
) | $SENDMAIL -oi -t
while the second one, having exactly the same formail but just a different
pattern, fails:
:0
* > 16384
| (formail \
-rA "Precedence: junk" \
-I "From: Mail Delivery Subsystem
<MAILER-DAEMON(_at_)atmedia(_dot_)net>" \
-I "Subject: Non-delivery notification" \
-A "X-Loop: mailloop(_at_)atmedia(_dot_)net" ; \
echo "This is an automated message regarding the non-delivery
of your message."; \
echo "Your message contains a binary attachment, which the
recipient has chosen "; \
echo "not to accept, and has consequently been discarded. "; \
echo " "; \
echo "postmaster(_at_)atmedia(_dot_)net" \
) | $SENDMAIL -oi -t
Here's the excerpt from the log file:
procmail: [10215] Tue Aug 26 16:39:05 1997
procmail: Error while writing to " (formail \
-rA "Precedence: junk" \
-I "From: Mail Delivery Subsystem
<MAILER-DAEMON(_at_)atmedia(_dot_)net>" \
-I "Subject: Non-delivery notification" \
-A "X-Loop: mailloop(_at_)atmedia(_dot_)net" ; \
echo "This is an automated message regarding the non-delivery
of your message."; \
echo "Your message contains a binary attachment, which the
recipient has chosen "; \
echo "not to accept, and has consequently been discarded. "; \
echo " "; \
echo "postmaster(_at_)atmedia(_dot_)net" \
) | $SENDMAIL -oi -t"
The following rule is
:0 c
/dev/null
Any help would be greatly appreciated.
Klaus Johannes Rusch
--
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/