How can I use $HOME in .forward?
In an account that I use only occasionally,
my procmail executable is in $HOME/bin
The location of my home directory has sometimes been changed, and so I
would rather specify
"| IFS=' ' && exec $HOME/bin/procmail -f- || exit 75 #ruck"
instead of
"| IFS=' ' && exec /home/summer/ruck/bin/procmail -f- || exit 75 #ruck"
because I might not realize that my home directory has been changed
until after email has been lost.
But the former won't work, because HOME isn't set when sendmail reads
.forward.
What's a good way to handle this? Something along the lines of
"| IFS=' ' && exec `csh -cf 'echo ~ruck'`/bin/procmail -f- || exit 75 #ruck"
(which, btw, didn't work as I've typed it)
Thank you for any assistance.
Best regards,
John Ruckstuhl