On Mon, May 24, 2004 at 04:13:43PM +0200, Steffen Bisgaard wrote:
Hello list,
I may be blind, but why does this not work?
[root(_at_)host user]# more .procmailrc
<snip>
:0:
* Subject: {Filename?} Re:
virusstuff
[root(_at_)ml ph8mail_prod]# tail procmaillog
procmail: No match on "Subject: {Filename?} Re:"
'?' is a regular expression quantifier, meaning "zero or more of the
preceeding token". If you want to match a string with a literal
question mark in it, you'll have to escape the question mark "\?" or
put it in a character class "[?]":
:0:
* Subject: {Filename\?} Re:
virusstuff
ought to catch "{Filename?}" if that's what you're trying to do.
Scott
--
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail