[pology] Sieving and transcript.

Chusslove Illich caslav.ilic at gmx.net
Tue Aug 21 11:29:19 PDT 2012


> [: Sébastien Renard :]
> Is there a simple way to tell pology to ignore transcript while sieving ?
>
> Transcript code generate lots of false positive with check_spell and
> check_rules.
>
> In case it does not exist, could be add a global sieve option "ignore-
> transcript" ?

Well, global sieve option (if you mean option to posieve) is not good, as
posieve itself must not modify messages before sending them to sieves. If it
would, some things would become quite undefined (e.g. what consitutes a
modified catalog on sieving).

Instead, it is possible to add a parameter to sieves that need it. E.g.
stats strips scripted part automatically, without any parameter at all. Such
automatics would not be appropriate for check-rules and check-spell, since
someone (for example I) will want them to see the scripted part, but a
parameter to explicitly request ignoring it could be added.

However, I think having sieve parameter for this would be both redundant and
inflexible. Why not just add the filter:

  addFilterRegex match="\|/\|.*" on="pmsgstr"

into rule files which containt rules that should ignore the scripted part?

A somewhat related question is why do you use check-spell at all any more,
since you are using check-rules anyway? Spell checking can simply be one of
the rules:

  *hook name="spell/check-spell-sp~" on="msgstr"
  id="spelling"

Then it will run with rest of the rules, it can be run alone by giving
-s rule:spelling parameter to check-rules, or it can be excluded from
running by -s norule:spelling.

-- 
Chusslove Illich (Часлав Илић)
-------------- 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/20120821/1dba29dd/attachment-0002.pgp>


More information about the pology mailing list