procmail
[Top] [All Lists]

Re: problem matching subject - please help

2010-01-25 12:45:51
On Mon, 2010-01-25 at 10:19 -0800, Alex Rodriguez wrote:
Hello:

I'm trying to match subject with EXACTLY this content: " Logwatch for
host.domain.com (Linux)"

But I'm having problems matching with:

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

Regards,
Alex Rodriguez

You need to escape the parenthesis, and also terminate with a $ sign if
you don't want to match longer sentences.

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

____________________________________________________________
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>