procmail
[Top] [All Lists]

Re: Subject Filter

2001-04-04 12:26:30
Have you checked the log files? Are you sure that procmail
is being run at all? I would look into that... the recipe
that I gave you should work.

On Wed, Apr 04, 2001 at 03:05:10PM -0300, Corey Mosher wrote:
It didn't work, they still come through to my inbox instead of going to
the test directory.

The subject is '[sometext] hello there everybody' and will always be that.

Corey

On Wed, 4 Apr 2001, John Patton wrote:

On Wed, Apr 04, 2001 at 11:57:42AM -0300, Corey Mosher wrote:
I tried using the following in my procmailrc:

:0:
* ^Subject:hello there everybody
$MAILDIR/test

It doesn't seem to work, what am I doing wrong?

try:

    :0:
    * ^subject:.*hello there everybody
    test

The condition line (after the *) is a regular expression...
use the .* to specify any amount of stuff before the "hello
there..." part. Note that by default the regular expression
is case insensitive. Also, you don't need to specify
$MAILDIR... it's automatic.

-- 
John Patton                      patton66(_at_)home(_dot_)com
Get my GnuPG public key: finger john(_at_)24(_dot_)22(_dot_)215(_dot_)225

"All that we see or seem is but a dream within a dream." 
- Edgar Allen Poe 
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>