[ILUG] procmail and regexps

Conor Daly conor.daly at oceanfree.net
Wed May 23 12:33:51 IST 2001


On Wed, May 23, 2001 at 08:38:51AM +0100 or so it is rumoured hereabouts, 
Steffen Higel thought:
> On Tue, May 22, 2001 at 11:10:10PM +0100, Conor Daly articulated:
> > I've got the following in my .procmailrc
> > 
> > :0:
> > * ^Subject: [Volunteers]
> > Lists/volunteers
> > 
> > I'm trying to match on "[Volunteers]" in the mailman list name style.
> > Trouble is, other messages are triggering this rule and ending up in the
> > wrong place.  I've decided that the '[' and ']' are becoming a 
> > "match one of the included chars" type regexp.  Question is, how do I
> > escape the '[' in a procmail regexp?  Will the folowing work?
> 
> It should, but is there anything stopping you from sending a mail to
> yourself with [whatever] in the subject?

Yeah, it gets snagged by my "Mail to self" filter before that.  Maybe I'l
turn that off and see what happens.

Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  9:35am  up 3 days, 21:44,  0 users,  load average: 0.00, 0.07, 0.05
Hobbiton.cod.ie
  9:36am  up 2 days, 22:37,  2 users,  load average: 0.02, 0.04, 0.01




More information about the ILUG mailing list