procmail
[Top] [All Lists]

Re: Phantom lines in empty body

2004-06-22 02:28:12
On Mon, Jun 21, 2004 at 06:55:05PM -0700, Jim Osborn wrote:

On Mon, Jun 21, 2004 at  7:37:39PM -0500, David W. Tamkin wrote:

Could it possibly be operating on the entire message and not just
the body?  Maybe it is subtracting one point for every line in the
head.

That seems likely. wc -l says 26 for the entire email.  +1 for the
terminal newline?  If that's the explanation, then I guess that
version of procmail, at least in some instances, doesn't respect the B
flag on the colon line, even for non-size scoring conditions.

Bingo.  You have an earlier recipe with an H flag on the initiation
line.  This is an old, known bug.  See, e.g., Nancy McGough's QuickStart
reference to it here:

 http://www.ii.com/internet/robots/procmail/qs/#anatomy

And look for the exclamation mark a few lines down from there on the
page.

In versions of procmail that are hobbled by this bug, just use the
alternate syntax for HB conditions:

  :0
  * HB ?? whatever
  action

(The H alone is default and should normally not need to be expicitly
set.)

-- 
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

<Prev in Thread] Current Thread [Next in Thread>