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.

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to