|*Great* article, but I've found if you're using qmail, your .qmail file must *only* be:|
| /usr/bin/php /path/to/script.php
(ie: starting with a pipe)
|2009-08-21 17:58:36 - In reply to message 1 from NoiseEee|
|You can do that but, as it was explained in the article, if you try to process messages as you receive them, you may loose them if the PHP script fails for some reason.|
I use qmail too, but I use a POP3 account to deposit the messages that are received. Sometimes the site is under maintenance and the database is down, so I may not process messages in real time.
I just set a POP3 account to make messages go to a Maildir. While the site is down, the messages are dropped there. When the site is back up, a PHP script uses the POP3 client class to process all pending messages.
Anyway, you can still use the MIME parser class to process incoming messages even if you decide to process them in real time.
|2009-08-21 18:59:27 - In reply to message 2 from Manuel Lemos|
|Ahh yes, I understand your method. My original comment should then read "make sure you start with a | (pipe)" for the PHP command, everything else can stay :)|