procmail
[Top] [All Lists]

understaning of procmail regex syntax/idiosyncarsies continues...

2002-03-10 00:21:47
hi there,

i am trying to filter mail w/ following recipe ('\t' is actual tab)...

  :0
  * ^TOminolta.*@(e|yahoo)group
  * !^Subject:.*((505|xt|ht).*si|auto.*ttl flash|point.*shoot|\<p[ \t]*\&[ 
\t]*s\>)
  {
    :0:
    * 2147483647^0 \
    ^Subject:.*()\<(d(igi(tal)?)?[ \t]*slr|digi(tal)?[ 
\t]*(film|popular|camera|minolta|maxxum))

    * 2147483647^0 \
    ^Subject:.*\<(d(igi(tal)?)?[ \t]*slr|digi(tal)?[ 
\t]*(film|popular|camera|minolta|maxxum))

    #  other conditions

    /dev/null

    ...
  }


...w/ subject lines like this...

 Subject: Re: Re: DIGITAL Vs. FILM Archival Properties

...log says...

  procmail: Match on \
  
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)minolta.*@(e|yahoo)group"
  procmail: Match on \
  ! "^Subject:.*((505|xt|ht).*si|auto.*ttl flash|point.*shoot|\<p[ \t]*\&[ 
\t]*s\>)"
  procmail: Score:       0       0 \
  "^Subject:.*()\<(d(igi(tal)?)?[ \t]*slr|digi(tal)?[ 
\t]*(film|popular|camera|minolta|maxxum))"
  procmail: Score:       0       0 \
  "^Subject:.*\<(d(igi(tal)?)?[ \t]*slr|digi(tal)?[ 
\t]*(film|popular|camera|minolta|maxxum))"
  ...
   Subject: Re: Re: DIGITAL Vs. FILM Archival Properties
    Folder: In/IN.camera-junk


...what's wrong w/ the above regex? shouldn't "digi(tal)[ \t]*
(film|...)" have caught the above mail?  do i need to put that part
of the regex inside parentheses?

i thought that may be i would need '()' before '\<' but that doesn't
seem to be the problem.  i think that i can just remove that
condition as they seem to be superfluous. (aren't they? why?)

 - parv

-- 
 
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>