procmail
[Top] [All Lists]

Re: How to tell promail to stop processing recipes?

2003-03-07 17:20:32
On Sat, 8 Mar 2003 00:17:34 +0100, Dallman Ross <dman(_at_)nomotek(_dot_)com>
wrote:

On Fri, Mar 07, 2003 at 03:00:48PM -0800, 
multimedia-fan(_at_)myrealbox(_dot_)com wrote:
is there a command that tells procmail to stop processing further
recipes from within this recipe, after the conditions are met?

By "recipes from . . . this recipe," I assume a typo and your having
meant "recipes from . . . this rc-file."

Stop and deliver to $DEFAULT, or stop and abandon the mail?

For the former,

      SWITCHRC

without any argument will do.  See it in 'man procmailrc'.

For the latter,

      HOST=byebye  # or any bogus name, or no name at all

will do.


Thank you for responding.

I read again the pointer to SWITCHRC in the man pages and followed your
suggestion.

I put this recipe as the first one in my etc/procmailrc


## Start of white list
## Any mydomain.com email addresses are whitelisted.
:0:
* ^From: (_dot_)*(_at_)(_dot_)*(_dot_)mydomain(_dot_)*
SWITCHRC
## subject lines with 'adv' or 'advertisement' or some other variation
:0:
* ^Subject: \[?ADV.*\]?
/var/log/spam
[Rest of file]

Went a head and sent a test message to my self (from and to are to my
self in that domain) , and yet I see the message held in the spam
folder.


And when I look in the logs.

/var/logs/procmail.log

I see.


From me(_at_)mydomain(_dot_)com  Fri Mar  7 18:52:15 2003
 Subject: Test procmailrc.
  Folder: /var/log/spam           743
procmail: Skipped "* (powerfulquotes.com)"
procmail: Skipped "/var/log/spam"
procmail: Skipped "* (supernaba.com)"

And another dozen of filters.

Did I mess up somewhere?

Thank you again for taking the time to respond.







_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail