Using this recipe to detect an empty mail body:
#
# Test for empty body:
#
:0 B
* 1^0
* -1^1 ^.*[^ ]+.*$
{
SPAMSCORE = "${SPAMSCORE}${SPAMSCORE:+, }NOBODY"
:0 fwh
* $!${addheaders:+!}
| formail -A "X-Diagnostic: empty body"
}
I get the expected behavior at home, using procmail v3.15.1. (SuSE
Linux 7.3 on i686). That is, when I throw a mail at that recipe
that has a body consisting of three linefeeds, it scores 1.
At my isp, using procmail v3.22 on SunOS 4.1.4, and various linuxes
I think on sun machines (I can check if it's relevant), I get this:
procmail: Score: 1 1 ""
procmail: Score: -27 -26 "^.*[^ ]+.*$"
I checked the email with a binary viewer, and sure enough, after
the last header line, there are three 0x0As, then EOF.
Am I doing something pathological in that recipe?
I tried simplifying the second condition to:
* -1^1 [^ ]+
and got this:
procmail: Score: 1 1 ""
procmail: Score: -1495 -1494 "[^ ]+"
WTF?
Does my ISP have a broken procmail?
TIA for any light on this.
Jim
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail