procmail
[Top] [All Lists]

A better autoresponder?

2001-03-30 02:04:48
Following on from our autoresponder discussion the other day, it seems daft
not to call autoresponder data straight from a database (our site runs
PHP/MYSQL already). So this seems logical:

# AUTO1
:0 hc
* ^TOauto1(_at_)ourdomain(_dot_)com
* !^FROM_DAEMON
* !^X-Loop:(_dot_)*(_at_)ourdomain(_dot_)com
  | (formail -rtb -I"Precedence: bulk" \
     -I"From: Us <info(_at_)ourdomain(_dot_)com>" \
     -I"Subject: Info you requested" \
     -A"X-Loop: auto1(_at_)ourdomain(_dot_)com"; \
     lynx -dump http://www.ourdomain.com/blah/blah/ \
     ) | $SENDMAIL -oi -t
:0 Ac:
auto1

I can type lynx -dump http://www.ourdomain.com/blah/blah/ at the command
prompt and get the result I want.

Is it possible procmail only has a limited number of shell programs to
operate with?

The logfile for the above recipe throws an error - I tried the full path of
lynx, I tried making a variable with $LYNX and its full path but always:

  Total  Number Folder
  -----  ------ ------
      0       2  ##      ) | $SENDMAIL -oi -t"
      0       2  ##      -A"X-Loop: auto1(_at_)ourdomain(_dot_)com"; \
      0       2  ##      -I"From: Us <auto1(_at_)ourdomain(_dot_)com>" \
      0       2  ##      -I"Subject: Info you requested" \
      0       2  ##      /usr/local/bin/lynx -dump
http://www.ourdomain.com/blah/blah/ \
      0       1  ## /usr/local/bin/lynx: not found
      0       2  ## procmail: Acquiring kernel-lock
      0       1  ## procmail: Assigning "LASTFOLDER=
(formail -rtb -I"Precedence: bulk" \
      0       1  ## procmail: Assigning "LASTFOLDER=/var/mail/default"
      0       1  ## procmail: Assigning "LASTFOLDER=auto1"
      0       1  ## procmail: Executing " (formail -rtb -I"Precedence: bulk"
\
      0       1  ## procmail: Locking "/var/mail/default.lock"
      0       1  ## procmail: Locking "auto1.lock"
      0       1  ## procmail: Notified comsat:
"catcher(_at_)5508:/var/mail/default"
      0       1  ## procmail: Opening "/var/mail/default"
      0       1  ## procmail: Opening "auto1"
      0       1  ## procmail: Unlocking "/var/mail/default.lock"
      0       1  ## procmail: Unlocking "auto1.lock"
    941       1  (formail -rtb -I"Precedence: bulk" \      -I"From: Us
    942       1 /var/mail/default
    942       1 auto1


Thanks
David

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>