On 11/25/2011 10:13 AM, Martin Gregorie wrote:
> Subject: [Fwd: Re: How long a rule can be?]

My main answers to the original thread were posted there (today). I
guess I'm too accustomed to orderly threads; coupling my threaded view
in thunderbird with the big pile of mail unread since before the holiday
and I missed this thread when responding to the original.

If you want to fork the thread into a tangent, please change the subject
so other responses to it don't follow you.  Also, don't respond to the
parts of the thread you are not forking; those belong in another message
in the original thread.

</rant>


> If you're finding your rule is starting to get difficult to maintain,
> take a look at my rule assembly tool, which is designed to allow such
> rules to be defined in an easily edited file for each rule that are
> used to create a single .cf file. See: 
> http://www.libelle-systems.com/free/portmanteau/portmanteau.tgz
> 
> I was thinking of using a server plus plugin to do this but was 
> convinced that this 'portmanteau rule' approach was better: it 
> certainly works well for me.

You might want to consider Regexp::Assemble for your tool, though that
would require using perl.  This would cause your man page's example rule
to result in something like this:

       body     __AU0 /(?i-xsm:\balt[123]\b)/

rather than your script's *much* slower:

       body     __AU0 /\b(alt1|alt2|alt3)\b/i

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to