procmail
[Top] [All Lists]

Re: Variables in .procmailrc

2001-09-04 11:53:59
John Heyer asked,

| In my .procmailrc file, I have variable called DEFAULT to put my mail in
| /var/mail when it's determined to be important, i.e.
|
| DEFAULT=/var/mail/john

Isn't DEFAULT already preset to that?  Isn't ORGMAIL already preset to that?

| Is there any way to do this without explicitly putting my username in?  I
| tried using the $MAIL and $USER variables that show up in my shell, but
| they do not seem to be recognized by procmail.

$MAIL would be known only by a login shell or a descendant thereof.  $USER
lost the battle to $LOGNAME in Posix, and procmail conforms, so the literal
answer to your question is

DEFAULT=/var/mail/$LOGNAME

but if the preset value of DEFAULT isn't that already, perhaps you need to
recompile procmail.  The only reason you might ever want to change $DEFAULT
is to point it somewhere *other* than your regular spool.


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