procmail
[Top] [All Lists]

Re: procmail $DEFAULT problems

1998-08-16 02:51:55
On Sun, Aug 16, 1998 at 07:23:46PM +1200, Volker Kuhlmann wrote:
Sorry to bring this up again, but I have to consider procmail faulty in
the handling of $DEFAULT and $ORGMAIL.

Thanks to the people who pointed out $SHELL and $LOG, and that the use of
tcsh might be a problem. However, I ran this simple test:

.procmailrc:
---------------------------------
VERBOSE=yes
PATH=/bin:/usr/bin:/usr/local/bin
DEFAULT=$HOME/Mail/inbox
ORGMAIL=$DEFAULT
LOGFILE=$HOME/Mail/etc/procmail.log
SHELL=/bin/sh
UMASK=076

I can only offer some trivialities:

1.  Does $HOME/Mail/inbox exist, and is it writable by you?  Is
$HOME/Mail rwx by you?

2.  Put the SHELL=/bin/sh as the first line of your .procmailrc.  

3.  Quote your path. (PATH="/bin:/usr...") Shouldn't be necessary, but... 

4.  Again, this probably shouldn't matter, but try setting
MAILDIR=$HOME/Mail   
then making 
DEFAULT="inbox"

That's all I can offer right now.  What seems most likely to me is that
the SHELL=/bin/sh isn't the first line in your .procmailrc.  I think what
may be happening is that procmail is using whatever usual shell to
process the commands up until the SHELL assignment, then using the
shell in SHELL to process the rest of the file.  That would result in 
the variables DEFAULT and ORGMAIL being returned to their default values.

HTH.
 
Greg
-- 
Gregory S. Sutter                 Bureaucrats cut red tape -- lengthwise.
mailto:gsutter(_at_)pobox(_dot_)com
http://www.pobox.com/~gsutter/
PGP DSS public key 0x40AE3052

<Prev in Thread] Current Thread [Next in Thread>