[imp] How to add enviromental variable when sending from IMP

Rich Lafferty rich@horde.org
Fri, 13 Apr 2001 13:00:20 -0400


On Fri, Apr 13, 2001 at 09:23:17AM -0700, John McCoy, Jr. (jmccoy@mills.edu) wrote:
> I need to pass QMAILQUEUE to qmail when sending email from within IMP to get
> the scan4virus to do it's work.
> I looked through compose.php3 but couldn't see a good place for it, nor do I
> really know how to properly set a variable to be passed to a program from
> php.
> 
> Thanks all.
> 
> Variable needed: QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"

If that's an environment variable, you probably want to set it before
you start apache, so that it's part of Apache's environment (and thus
Apache's children's environment).

  -Rich

-- 
------------------------------ Rich Lafferty ---------------------------
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC                 (514) 848-7625
------------------------- rich@alcor.concordia.ca ----------------------