procmail
[Top] [All Lists]

RE: What have I done now?

2003-12-15 12:37:11


-----Original Message-----
From: Nick
Sent: Monday, December 15, 2003 10:56 AM

I have this in the /etc/procmailrc and I thought it worked previously
(yesterday)

# Check Special X-OED Header
:0
* ^X-BOB*
SWITCHRC=$HOME/.procmailrc

but now I get

From cron(_at_)oeddev(_dot_)org  Mon Dec 15 12:46:56 2003
  Folder:
/home/nick/Mail/Backup                                           2204
procmail: Error while writing to "SWITCHRC=/home/nick/.procmailrc"

Procmail is looking for a place to deliver that message and thinks
that "SWITCHRC=/home/nick/.procmailrc" is a filename in the context you're
using it. You need something like this:

# Check Special X-OED Header
:0
* ^X-BOB*
{
SWITCHRC=$HOME/.procmailrc
}

Those brackets tell procmail to execute the contained recipes/actions in
there, if the pattern is matched.


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