procmail
[Top] [All Lists]

Re: Not writing to .procmail.log

2002-12-08 20:53:33
On Sat, 7 Dec 2002, David W. Tamkin wrote:

I suggested to Bob,

| > My first guess: maybe there was a line in /etc/procmailrc defining PMDIR.

He replied.

| Pretty good guess except that there has never been a /etc/procmailrc (it
| doesn't show up when "locate procmailrc" is run).

Would locate find a non-executable file in /etc?


Doesn't show up with ls -a /etc either.

 
| Even if it did exist,
| why didn't it work before I changed $HOME/.procmailrc?

You said it *did* work in the past.  Now you're saying it didn't.


Perhaps I didn't make it clear. What I thought I said was that it worked 
until I deleted $HOME/Procmail/.procmail.log and .procmail.log.old and 
tried to have procmail recreate .procmail.log. I changed *nothing* else.
Procmail refused to create the log file until I changed .procmailrc to
define PMDIR prior to defining LOGFILE. 


It never should have.  If you haven't yet defined PMDIR, then $PMDIR is unset,
and LOGFILE=$PMDIR/procmail.log would set $LOGFILE to /procmail.log in the
root directory of your system.


A search of the root directory failed to turn one up (because there was no 
.etc/.procmailrc?).


If your user account doesn't have permission
to write there -- and it shouldn't; even if you're the sysadmin your regular
login shouldn't have write perms in /, and while you can create files there if
you su to root, you shouldn't be receiving mail as root


Agreed...and I never do.

 
I thought you understood all that and were wondering why it had ever worked at
all.


Probably my fault for not making it clear.


And the only thing you changed is your .procmailrc?  


Yup.


Maybe your old .procmailrc had another assignment defining PMDIR before 
it defined LOGFILE ... that is, if it used to work in the past.


My old .procmailrc was just as I posted it, and it worked in the past. I'm 
as mystified as you must be.

Yours in bewilderment

-- 
Bob Holtzman
"If you think you're getting free lunch,
 ......check the price of the beer!"


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