procmail
[Top] [All Lists]

Re: Error while writing to "bla bla...

2001-12-17 22:24:16

On Mon, 17 Dec 2001, Paul Thomas wrote:


Hello,

I'm stuck with an /etc/procmailrc recipe. The recipe works fine
when placed in the .procmailrc of a user home directory, but in
/etc/procmailrc it won't write the spam-check.log in the user
directory as it does the procmail.log file.

I have the following:

:0 wc
 ^Received:.*for.*debris
| /usr/bin/spam-check -d
:0 wa
spam-check.log

Here is the procmail.log result when the recipe is
run from /etc/procmailrc (DROPPRIVS=YES):

procmail: Match on "^Received:.*for.*debris"
procmail: Executing "/usr/bin/spam-check,-d"
procmail: [19459] Mon Dec 17 19:28:28 2001
procmail: Assigning "LASTFOLDER=/usr/bin/spam-check -d"
procmail: Assigning "LASTFOLDER=spam-check"
procmail: Opening "spam-check"
procmail: Error while writing to "spam-check"

 
I posted this to the list as I was working on and off
throughout the day, wouldn't you know that no sooner did I
post the question, a few minutes later and the light came on.

To solve this problem, I needed to change in my /etc/procmailrc:

:0 wc
* ^Received:.*for.*debris
 | /usr/bin/spam-check -d
 :0 wa
 spam-check.log

to:

:0 wc 
* ^Received:.*for.*debris 
 | /usr/bin/spam-check -d 
 :0 wa 
$HOME/spam-check.log 
 

Then I get the spam-check.log file in the home directory
like I wanted.

Thanks!

--Paul T.
Cueman


--


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