List Info

Thread: Chat script from Dbmail




Chat script from Dbmail
country flaguser name
India
2007-03-30 23:53:54
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
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: Chat script from Dbmail
country flaguser name
United States
2007-03-31 01:37:53
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 natarajsancharnet...

Also add a forwarding address for that email:

  dbmail-users -x natarajsancharnet... -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
> DBmaildbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )