Ok, ignore that last post of mine, I got it working, i was taking the input incorrectly ;)
I'll make another post when i have the autoresponder finished. im sure some other people could make use of it. Thanks guys, Dan. ----- Original Message ----- From: "Paul J Stevens" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, October 23, 2003 9:53 PM Subject: Re: [Dbmail] piping in the aliases table > > > Daniel Bryant wrote: > > Hi. > > > > > > As i mentioned a few hours ago, im planning on writing a php script to > > handle auto-responders. > > > > I plan on doing this by using the aliases table to pipe to a php script, > > which will in turn query a database and check how many times an > > autoresponse has been sent to a given email address and determine > > whether or not it should send anything.. (to avoid mail looping problems.) > > > > anyway... I guess the problem im having is getting the data to pipe out. > > > > Just for testing, i should be able to pipe the data to a file shouldnt i? > > > > for example: > > in the aliases table, i have an entry.. > > alias:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > deliver_to: |/test.txt > > > > From what i understand this should pipe the data to /test.txt shouldnt it? > > (yes i have set chmod 777 /test.txt for testing purposes.) > > but nothing appears in the file.. > > In what file ? In test.txt ? > > If you want to append to a file try: > > deliver_to: '|cat - >> /tmp/test.txt' > > If you want to pipe to a script try: > > deliver_to: '|/myscript.sh' > > where myscript.sh is really a script. > > > > > > > > Do i have this all wrong? > > > > > -- > ________________________________________________________________ > Paul Stevens mailto:[EMAIL PROTECTED] > NET FACILITIES GROUP PGP: finger [EMAIL PROTECTED] > The Netherlands________________________________http://www.nfg.nl > > _______________________________________________ > Dbmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail >
