procmail
[Top] [All Lists]

Re: Filtering e-mail by subject and creating IMAP folder

2002-03-06 13:06:57
On Wed, 6 Mar 2002, Udi Mottelo wrote:

      Unfortunatly, there is no string position in procmail.
      The following find the second word from the Subject:

* Subject: *[^  ]+[     ]+\/.+

No, that extracts the entire subject after the first word, for a very
loose definition of a word.  More likely you want something like

*Subject:[      ]*[_a-z.]+[^_a-z.]+\/[_a-z.]+

(apply usual disclaimers about brackets containing space and tab).  Adjust
the "_a-z." to match whatever you consider a "word".

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