procmail
[Top] [All Lists]

howto calculate linebuf

2007-01-10 10:20:41
Hallo

i have a bunch of procmail recipes and i want to  calculate dynamicly  
the Procmail "linebuf".

some of my recipes are more "expansive" others less

for example a recipe with a long list of BADWORDS made out of Varibles like

    V = '([Vv]|\\/|\\\||\|/)'
    I = '[Ii1LljJtT|Ff]'
    A = '([Aaf]|/\\)'
    G = '[Gg9]'
    R = '[RrsS]'
    E = '[eE83]'
    O = '[0OoUuVv]'
    P = '[PFHpfh]'
    C = '[CcXx]'
    Y = '[yYmMoOBb]'




BADWORDS="  (C($I+$A+.?$I+)|\
C($I+$A+$O+$I+)|\
C($O*$I+)age.?($G+$I+)rl|\
c($I+)maxc($O+)nd($O+)ms|\
D($I+)PLOM)\
[snip]
and so on
"

:0
*$ B ?? ()\<\/$BADWORDS\>
{ some_action }

consume more linbuffer if it is getting expanded
other recipes with a simple REGEX like

:0
* From:(_dot_)*(_at_)example(_dot_)tld

is consuming less.

can some one point me in the right direction please

Matthias







 

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • howto calculate linebuf, Matthias Haeker <=