On Fri, May 28, 2004 at 02:45:59PM +0200, Hans du Plooy wrote:
Hi all,
I'm trying to have procmail filter mail to a specific folder if the
subject
contains certain text, in this case [KT-USERS]
my recipy looks like this:
:0hb:
*^Subject:.[KT-USERS]
/home/hansdp/Maildir/.User-Lists.knowledgeTree/
The method works fine if I replace [KT-USERS] with ****SPAM**** to
catch out
mail tagged by spamassassin, but for some reason with [KT-USERS] it
wouldn't
work. The log just tells me:
procmail: No match on "^Subject:.[KT-USERS]"
Does the brackets "[" or "]" interfere in some way?
On Fri, 28 May 2004 08:03:34 -0600 Scott Wiersdorf
<scott(_at_)perlcode(_dot_)org>
wrote:
You probably want to escape the [ and ]:
*^Subject:.\[KT-USERS\]
Scott
Or just leave them out as "KT-USERS" is probably not going to commonly be
found in a subject line.
*^Subject:.KT-USERS
Gerald
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail