A simpler way to do this will be adding a second alias with 'dbmail-users' that pipes out to a shell script.
First you have an alias from your email address to your username: dbmail-users -c nataraj -s [EMAIL PROTECTED] Also add a forwarding address for that email: dbmail-users -x [EMAIL PROTECTED] -t "|/foo/mychatscript.sh" The message will be delivered both your mailbox and piped out to the script. Read through the dbmail-users man page for more details, like whether you want to use ! or | to launch your script. Aaron On Sat, 2007-03-31 at 10:23 +0530, Nataraj S Narayan wrote: > Hi > > I need to write a chat script that dials a modem attached to my mail > server as and when I receive a mail, to a particular account/ID. > > I use MySQL 5.xx with Dbmail. Is it ok to write an 'Insert' trigger for > the table 'dbmail_tofield' , which will call the external 'chat' program? > > > > regards > > Nataraj > > > > _______________________________________________ > DBmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
