On Sat, Jul 15, 2006 at 07:40:59PM +0200, Ruud H.G. van Tol wrote:
Don Russell schreef:
/etc/procmailrc
< do great things here >
:0
* ? test -f ${HOME}/.procmailrc
{
DROPPRIVS=YES
INCLUDERC=${HOME}/.procmailrc
}
# If we get this far, either no .procmailrc file, or it wasn't
delivered by .procmailrc
:0:
${DEFAULT}
I see some problems with that. $HOME might contain whitespace.
That doesn't matter. It doesn't need quoting once it is already
assigned to a var.
--------------------------------------------------------
2:22am [~/Mail] 657[1]> cat testme.rc
HOME = "$HOME/Mail/test dir"
FOO = $HOME/foo.rc
INCLUDERC = $FOO
2:22am [~/Mail] 658[0]> cat test\ dir/foo.rc
VERBOSE = off
LOG = "
Hi!"
2:22am [~/Mail] 659[0]> procmail -m VERBOSE=y testme.rc < /dev/null
procmail: [553] Sun Jul 16 02:22:32 2006
procmail: Assigning "MAILDIR=."
procmail: Rcfile: "testme.rc"
procmail: Assigning "HOME=/net/u/1/d/dman/Mail/test dir"
procmail: Assigning "FOO=/net/u/1/d/dman/Mail/test dir/foo.rc"
procmail: Assigning "INCLUDERC=/net/u/1/d/dman/Mail/test dir/foo.rc"
procmail: Assigning "VERBOSE=off"
Hi!
--------------------------------------------------------
One catch is on the action line, though. E.g.,
:0:
"$FOO"
with the quotes being necessary because of the whitespace.
Dallman
____________________________________________________________
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