3 messages in net.sourceforge.lists.courier-maildrop[maildropl] regex problem
FromSent OnAttachments
salm...@gmx.netDec 27, 2002 3:29 am 
Sam VarshavchikDec 27, 2002 5:08 am 
salm...@gmx.netDec 28, 2002 10:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] regex problemActions...
From:salm...@gmx.net (salm@gmx.net)
Date:Dec 27, 2002 3:29:45 am
List:net.sourceforge.lists.courier-maildrop

hi,

im my ~/.mailfilter i have a line like the following: if (/^To: test-[0-9]{8}@example\.com$/) ...

my problem: the regex above does not match a header like To: test@example.com

if i change '[0-9]{8}' to '[0-9]+' in the regex, i get a match as expected. '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' (eight times) also works.

why does '[0-9]{8}' not work with maildrop? should be a correct extended regex in my opinion. at least with egrep it works.

TIA, jukka