[pology] check-rules findings reported on a per-rule basis

mvillarino mvillarino at gmail.com
Sat Dec 28 16:07:56 PST 2013

Works marvelously.

(But for an unrelated error claiming "expected string or buffer" that
appears on several files. Nevertheless it also appears without the
-sbyrule, and with the unmodified sieve, so I guess I need to
investigate a little more)

2013/12/28, Chusslove Illich <caslav.ilic at gmx.net>:
>> [: mvillarino :]
>> I'm triynd to do it the other way, that is getting the results on a rule-
>> first basis: rule1-file1 rule1-file2 ... ruleN-fileO, ruleN-fileP....
>> [...]
>> So...., Is there any other better (faster) way to do this??? Maybe
>> reordering the results? How to do it?
> Since posieve is built around processing message by message, there is no
> way
> of processing rule by rule (other than writing an entirely new command).
> But indeed reordering the output is possible. Simple thing would be for
> check-rules to collect failed messages until it had processed all of them,
> not outputing anything, and only at the end print everything ordered by
> rule. Try the attached modified check_rules.py; add new parameter -sbyrule
> to have it operate as described.
> --
> Chusslove Illich (Часлав Илић)

More information about the pology mailing list