[pology] check-rules findings reported on a per-rule basis
Chusslove Illich
caslav.ilic at gmx.net
Sat Dec 28 05:44:05 PST 2013
> [: 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 (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_rules.py
Type: text/x-python
Size: 24781 bytes
Desc: not available
URL: <http://lists.nedohodnik.net/pipermail/pology-nedohodnik.net/attachments/20131228/af3c1d1e/attachment-0002.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.nedohodnik.net/pipermail/pology-nedohodnik.net/attachments/20131228/af3c1d1e/attachment-0002.pgp>
More information about the pology
mailing list