procmail
[Top] [All Lists]

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

2002-03-06 16:09:54
On  6 Mar, Bart Schaefer wrote:
| 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".
| 

Or closer to what the original poster had in mind (I think),

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

Same as Bart indicated, it's a <space> and a <tab> in each character
class.


-- 
Reply to list please, or append "6" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.


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