On Tue, Dec 14, 2004 at 02:36:54PM +0100, Ruud H.G. van Tol wrote:
Toen wij Dallman Ross kietelden, kwam er dit uit:
"MAILDIR", is not simply a static assignment but is a
process.
Yes, but only when it is at the left of the equal sign.
Okay, you have a good point there.
1. set a variable named 'MAILDIR' to the value '/home/u/us/user/mail'
(where the '/home/u/us/user' part is just an example)
or to the value '.' if "$HOME/mail" doesn't exist
2. change the current working directory to "$HOME/mail"
[. . . .]
In an expression, $MAILDIR will just return what you put into it.
Unless the directory didn't exist, because in that case MAILDIR
was set to '.' which stands for 'current working directory'.
Hmm. Okay, then it seems I wasn't correct, since it can be useful
to have $DEFAULT or any other path, for that matter, set to an
absolute path (or, if $HOME does not exist, then a working relative
path). Thanks, Ruud.
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail