procmail
[Top] [All Lists]

Re: Phantom lines in empty body

2004-06-21 15:53:34
On Tue, Jun 22, 2004 at 12:01:04AM +0200, Ruud H.G. van Tol wrote:

Toen wij Jim Osborn kietelden, kwam er dit uit:

 :0 B
 * $-9999999^1    [^$SPC$TAB]+
 *         1^0

You have a few problems there! 

-9999999 fits 214 times into 2147483647. 

Better change the -9999999^1 to -9876543210^0, 
or at least (=at most) to -2147483647^0.

Also, the + is unnecessary.

Personally, I'd just go with what was in my reply yesterday,
namely

  :0 B:
  * $ ! [^$SPC$TAB]
  empty-body.mbox

(Class contents edited to conform to Jim's syntax above.)

That is, if there's NOT something that was neither a
space nor a tab, then the body is empty (only whitespace).
Newlines won't affect the result one way or the other, so
they aren't considered in the condition.

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