procmail
[Top] [All Lists]

Re: problem matching subject - please help

2010-01-25 13:03:19
On Mon, Jan 25, 2010 at 10:19:29AM -0800, Alex Rodriguez wrote:
I'm trying to match subject with EXACTLY this content: " Logwatch for
host.domain.com (Linux)"

The "Extended regular expressions" section of procmailrc shows that parentheses are used for regex grouping, so you need to escape them if you mean literal parentheses.

But I'm having problems matching with:

:0:
* ^Subject:[    ]*Logwatch for host\.domain\.com (Linux)
${DEFAULT}

# untested, but should work
:0:
* ^Subject:[    ]*Logwatch for host\.domain\.com \(Linux\)
${DEFAULT}

Ed

Attachment: signature.txt
Description: Digital signature

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>