David Gessel wrote Monday, October 15, 2007 11:07 AM:
I was trying to amend Nic's Spam-X script to add some
preprocessing and spam checking. It was working fine - that
is delivering mail to appropriate folders and doing spam
checks - but then an odd thing started happening (really,
for no apparent reason). If any of the pre-filtering was
triggered (by the grep tests, see the script below) it caused
the mail to be delivered (to the correct folder) without any
body (that is just the message head, the body blank). The
save_all file showed the full message (no mail was lost) but
the delivered message had nobody.
Well, you obviously changed some things.
In any case, various recipes are now set to save only headers.
So it's not surprising that they did in fact save, um, only headers.
Here they are. See the "h" flags?
# If message is an NDN then archive it
:0 h
* MAILER-DAEMON
NDNs
1) Will save only header
2) Needs a lockfile unless NDNs is a directory
# whitelist check
:0 h
* ? $GREP -i ^$FROM $DB
$DEFAULT
1) Will save only header
2) I presume $DEFAULT is maildir; if not, and not a dir,
you need a lockfile.
# Checks bulkmail sources
:0 h
* BULK ?? (.)
* ? $GREP -i ^$FROM $BULK
.Bulkmail/
1) Will save only header
# checks BSD sources
:0 h
* BSD ?? (.)
* ? $GREP -i ^$FROM $BSD
.BSD/
1) Will save only header
# checks Commerce sources
:0 h
* COM ?? (.)
* ? $GREP -i ^$FROM $COM
.Commerce/
1) Will save only header
# checks SRL sources
:0 h
* SRL ?? (.)
* ? $GREP -i ^$FROM $SRL
.SRL/
1) Will save only header
# checks Travel (reservations) sources
:0 h
* TRAV ?? (.)
* ? $GREP -i ^$FROM $TRAV
.Travel/
1) Will save only header
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail