Re: [PHP] Using php to parse mail

2002-05-24 Thread Analysis Solutions

On Fri, May 24, 2002 at 01:57:31PM -0400, Cedric Fontaine wrote:
 
 Any clue ? What the differences between 4.0.6 and 4.2.1 makes this
 happens ?

Are you calling environment or server variables directly?  For _example_ 
$PATH.  If so, call them using the superglobal $_SERVER['PATH'].  Or 
perhaps you're utilizing $argv to bring in stuff from the command line?  
Similarly, use $_SERVER['argv'].

These chagnes are due to register_globals now defaulting to Off.

Just a guess,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Using php to parse mail

2002-05-24 Thread Miguel Cruz

On Fri, 24 May 2002, Cedric Fontaine wrote:
 In fact, the script does work and does its jobs... But when Qmail
 delivers the mail to my script, it assumes that the mail is not
 successfully delivered and puts the mail in queue. But the mail is
 fully delivered...
 
 That means that my script parses the mail cause it received it. And
 some hours later, Qmail refeed my script and assumes that the mail is
 not fully delivered and goes on for hours and hours...

qmail uses the exit code to determine what happened to the message. Try 
ending your script with exit(99); that tells qmail that you're done with 
the message and never want to see it again.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php