Re: Using php to parse mail
| From: | Yasuo Ohgaki | Date: | Sat, 25 May 2002 10:11:49 +0000 |
| Subject: | Re: Using php to parse mail | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7101@lists.php.net to get a copy of this message | ||
I just replied to qmail list, but anyway,
You are having problem with a little exit/die behavior.
Look for it and change it to "return" (or return numeric 0
e.g. exit(0);)
Then your script would work properly.
(I'm still guessing since you provide no error message nor
code)
--
Yasuo Ohgaki
Cedric Fontaine wrote:
Hello ! Since some months, I created a bot to parse a special email address. It means that my MTA Qmail sends the mail to a php script and this scripts make some works on it. It works great for months with php 4.0.6. Sunday, I installed php 4.2.1 mod for Apache and also on shell. And since this moment, my parse script doesn't work anymore, in a way. 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... I hope that you understand what I mean. The script works with php 4.0.6 and also with 4.2.1 but I don't know why but the communication between Qmail and php 4.2.1 fails since the new version... Any clue ? What the differences between 4.0.6 and 4.2.1 makes this happens ?