View previous topic :: View next topic |
Author |
Message |
subrahmanyan Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/169665014040250d29af603.jpg)
Joined: 19 Jan 2004 Posts: 149 Location: Grey Havens
|
Posted: Mon Aug 08, 2005 12:44 pm Post subject: client-server communication using email - which software? |
|
|
Hi, I have two machines that are behind firewalls and can communicate only using email and I need to setup a kind of client-server communication between them.
The idea is the following:
The user (client) sends a mail in a special format - for example, to retrieve data from May 1 to July 1 he sends a mail with subject "get-data-2005-05-01-2005-07-01" to the other machine (server). The server recognizes the request, performs a query in the database and sends back a mail with the requested data.
Can someone suggest me which software to use for this?
Thanks for any advice.......................... _________________ emerge -C Microsoft |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neilhwatson l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Mon Aug 08, 2005 1:15 pm Post subject: Re: client-server communication using email - which software |
|
|
subrahmanyan wrote: | Hi, I have two machines that are behind firewalls and can communicate only using email and I need to setup a kind of client-server communication between them.
|
What is the reasoning behind this? Parsing email can be very difficult. Executing commands based on parsed email can cause stability and security problems. Surely a proper database connection, perhaps even over ssh, is a better solution. _________________ The true guru is a teacher.
Neil Watson |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
subrahmanyan Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/169665014040250d29af603.jpg)
Joined: 19 Jan 2004 Posts: 149 Location: Grey Havens
|
Posted: Mon Aug 08, 2005 1:47 pm Post subject: Re: client-server communication using email - which software |
|
|
The machines are on different networks and mail is the only way how to communicate between them. I didn't describe the whole problem here because it would be long and boring But if you are interested, here is a short summary:
The user opens a web page where he submits a form. This web page generates a mail in a specific format and this mail is sent to the server. The server checks the format of the mail, performs an action (database query if he understands the mail or error message in case of bad format of the mail) and sends a reply to the user. Which means that the structure of the mail is controlled by the web page, the user has no chance to modify the mail in any way. All he does is just a click on a Submit button in the form.
But the problem remains the same - I need software that is able to perform an action after receiving a mail in a specific format.
neilhwatson wrote: | subrahmanyan wrote: | Hi, I have two machines that are behind firewalls and can communicate only using email and I need to setup a kind of client-server communication between them.
|
What is the reasoning behind this? Parsing email can be very difficult. Executing commands based on parsed email can cause stability and security problems. Surely a proper database connection, perhaps even over ssh, is a better solution. |
_________________ emerge -C Microsoft |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|