[dev] [patch] regex in procmail scripts

Michael M Slusarz slusarz at bigworm.colorado.edu
Thu Feb 19 14:30:07 PST 2004


Quoting Johan FISCHER <linux at fischaz.com>:

> Hi,
>
> I created a patch to enable the regular expression in the creation of 
> rules and
> the generation of the procmail script.
>
> The patch add a check box asking if you want to enable the regex in the
> condition text input and store the value in the prefs backend.
> When generating the procmail script, if the regex flag is enable, the 
> quotemeta
> function is not called for the condition (and then your expression is 
> the same
> as when you inputted it).

This is a good idea, but there is no reason why we can't use the 'regex'
functionality that appears in the sieve script.  It has the bonus of 1) 
reusing
code, 2) eliminating another checkbox, 3) ability to use current 
documentation.

I have committed such a solution to CVS.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list