On Sun, Jul 29, 2001 at 06:19:03AM -0400, Philip Mak wrote:
> On Sun, 29 Jul 2001, PHP Webmaster wrote:
> 
> > |/usr/bin/lynx -post_data "http://..parser.php";
> > [...]
> > deferral: Your terminal lacks the ability to clear the
> > screen_or_position_the_cursor./_/
> 
> Perhaps there is an option that can tell lynx not to expect a terminal.
> How about lynx -post_data -source?

Either -source or -dump should work, with three provisos:

[1] Unless the output is actually meaningful, there's no sense in having
    it appear in your qmail log -- redirect stdout + stderr to /dev/null

[2] Be careful about lynx's error return codes -- qmail uses specific
    error codes to mean various things ("man qmail-command").  You
    probably want to wrap lynx in a script that handles lynx's error
    returns in an intelligent fashion.

[3] I haven't used PHP myself, but IIRC, POSTed data is expected to be in
    a specific format.  Simply dumping mail headers and bodies like that
    may not work at all, or worse, break your server in weird and horrible
    ways.

In the final analysis, Philip is right: You're much better off running a
PHP standalone interpreter for this than your current hack job.  You may
be even better off reusing someone else's work -- go to www.qmail.org and
search for Mail2DB (its description even contains a...remark about
combining PHP and .qmail).

-- 
Adrian Ho    Tinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
ListArchive: <http://marc.theaimsgroup.com/?l=qmail>
Useful URLs: <http://cr.yp.to/qmail.html> <http://www.qmail.org>
             <http://www.lifewithqmail.org/> <http://qmail.faqts.com/>

Reply via email to