Re: Scoring bug in Procmail v3.22
"David W. Tamkin" <[email protected]> Sun, 08 Jun 2003 14:20:41 -0500
| Newsgroups | gmane.mail.procmail.devel |
|---|---|
| Message-ID | <[email protected]> |
Liviu Daia wrote: > I stumbled upon what seems to be a bug in Procmail version 3.22, > related to scoring. It's probably not related to scoring but to 3.22's bug of a sticky H flag. Once you have an H on a flag line in 3.22, H is on until procmail exits, and only B ?? on a specific condition line can make it apply to only the body. > :0 Hfw > * ^Blah > | cat H without B is the default; you don't need it. Because of that H, the B here is misinterpreted as HB: > :0 Bfhw > * H ?? ! ^Lines: > * -1^0 > * 1^1 ^.*$ > | formail -b -A "Lines: $=" so it counts all the lines in the entire message. It also works if you specify B ?? on the second and third conditions of the latter recipe; that evades the sticky-H effect. Separately, one wonders why you're using the -b option to formail when it's filtering only the head. > Repeating the experiment without the first recipe however seems to > produce the expected result: Because then you aren't setting the sticky H flag.