procmail
[Top] [All Lists]

Re: Subject Filter

2001-04-04 12:46:03
All other recipes in the procmailrc work, just that one doesn't.  I'll check
the logs though.  

Thanks

Corey

On Wed, 4 Apr 2001, John Patton wrote:

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.



Corey Mosher

-----------------------------
Hub.Org Networking Services 
251 Main St. 
Wolfville, NS
Canada
B0P 1X0
Email: corey(_at_)hub(_dot_)org
Phone: (902) 542-3657
-----------------------------
PostgreSQL, Inc.
251 Main St.
Wolfville, NS
Canada
B0P 1X0
Email: corey(_at_)pgsql(_dot_)com
Phone: (902) 542-0713
-----------------------------
Fax:   (902) 542-5386

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