procmail
[Top] [All Lists]

matching single sequence of some characters

2002-08-20 01:58:25
below is the recipe which i am trying to match Subject: made up of
either...

  a. just reply string (^^Re:^^), or

  b. w/ all the characters outside of [a-z] (preceded by optional
     reply string), or

  c. a [-_./a-z0-9] single sequence


#  replace '\t' w/ actual tab
REPLY = "(aw|re|fwd)[ \t]*\[?[0-9]?\]?*[ \t]*:([ \t]*\[[0-9]+\])?"
:0
{ RE_BLANK = "[ \t]*${REPLY}[ \t]*" }

:0:
* $  9876543210^0  subj  ??  ^^${RE_BLANK}^^
* $  9876543210^0  subj  ??  ^^(${RE_BLANK})?[^a-z]+^^
* $  9876543210^0  subj  ??  ^^(${RE_BLANK})?[^a-z]*[-_./a-z0-9]+[^a-z]*^^
Ignore/x.junk


...but procmail says my regexes are crooked somewhere...


procmail: Matched " Re: QUOTA"
procmail: Match on "^Subject:[  ]*\/.+"
procmail: Assigning "subj= Re: QUOTA"
...
procmail: Score:  0   0 "^^[  ]*(aw|re|fwd)[  ]*\[?[0-9]?\]?*[  ]*:([  
]*\[[0-9]+\])?[  ]*^^"
procmail: Score:  0   0 "^^([  ]*(aw|re|fwd)[  ]*\[?[0-9]?\]?*[  ]*:([  
]*\[[0-9]+\])?[  ]*)?[^a-z]+^^"
procmail: Score:  0   0 "^^([  ]*(aw|re|fwd)[  ]*\[?[0-9]?\]?*[  ]*:([  
]*\[[0-9]+\])?[  ]*)?[^a-z]*[-_./a-z0-9]+[^a-z]*^^"
...
From owner-freebsd-questions(_at_)FreeBSD(_dot_)ORG  Mon Aug 19 20:30:23 2002
 Subject: Re: QUOTA
  Folder: In/i.f-questions


...since the message is delivered to i.f-questions instead of
x.junk.  please help me find that i am missing in my recipe.


  - 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>