procmail
[Top] [All Lists]

Re: Replacing characters in $MATCH, and folders with periods

2004-04-09 15:12:11
Timur asked,

What is the current directory when procmail runs?

That's in the man pages.

It's $MAILDIR if you've assigned a value to MAILDIR (and in fact you can reference it as $MAILDIR). That predates qmail's use of "maildir" for its storage format and you have to be careful not to confuse them nor to write either in the other's casing.

If you haven't assigned a value to MAILDIR, then the initial cwd (and initial value of $MAILDIR) is

. if procmail was invoked with the -m option;
. if procmail was invoked with any rcfiles named on the command line and the first one began with "./"; or
$HOME otherwise.

So usually it's $HOME until you assign a different value to MAILDIR.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail