Dr.Ruud wrote:
Shawn Corey:
M. Lewis:
do './mcr.conf';
The only way I have found thus far to make this work [...]
is to change the above line to:
do '/absolute/path/to/mcr.conf';
Your problem could be one of two things.
1. The procmail is run by the user but not from the directory where
mcr.conf is. Without forcing the user to start in this directory, you
would have to put the path somewhere in the process; either in the
Perl script or perhaps your procmail has an environment variable you
can set. In UNIX, you can read the environment via %ENV. You can try:
do "$ENV{HOME}/path/from/user/home/mcr.conf";
If the .conf is in the same directory as the .pl, then $0 can help, see
`perldoc perlvar` and File::Basename, or maybe even `perldoc FindBin`.
2. The procmail is run when a new message is placed in the user's
mailbox.
Procmail is normally used *to* place the message somewhere, so as the
LDA.
Thanks Dr. Ruud. I will look more into your suggestion as well as Shawn's.
Thanks,
Mike
--
SET DEVICE=EXXON to screw up your environment.
20:00:01 up 5 days, 14:50, 5 users, load average: 0.72, 0.15, 0.06
Linux Registered User #241685 http://counter.li.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>