rmccarri
March 22nd, 2010, 02:39 PM
Hi,
I'm considering getting one of those Peek Pronto devices that just does simple email and text messaging. However, I would like to be able to extend the functionality of it through my server. Currently, for instance, I have a custom script that runs on my server which uses wget and sed to get scores from an ESPN feed and drops it to a formatted text file that's accessible through the Apache web server.
Basically, what I would like to do is be able to initiate a script via an email message that say downloads some data from the internet, parses it in a convenient way, and then emails it back to the address from which it was recieved. I know how to generate scripts that would do this and email it back, but where I'm stuck is to how to initiate the script using an email sent from the device to the server.
Is there a way to probe a mailbox from a script and dump the subjects of the email in a text file? Then I could process the text file and resend an email with the requested information.
Any help pointing my in the right direction would be greatly appreciated!
Rob
I'm considering getting one of those Peek Pronto devices that just does simple email and text messaging. However, I would like to be able to extend the functionality of it through my server. Currently, for instance, I have a custom script that runs on my server which uses wget and sed to get scores from an ESPN feed and drops it to a formatted text file that's accessible through the Apache web server.
Basically, what I would like to do is be able to initiate a script via an email message that say downloads some data from the internet, parses it in a convenient way, and then emails it back to the address from which it was recieved. I know how to generate scripts that would do this and email it back, but where I'm stuck is to how to initiate the script using an email sent from the device to the server.
Is there a way to probe a mailbox from a script and dump the subjects of the email in a text file? Then I could process the text file and resend an email with the requested information.
Any help pointing my in the right direction would be greatly appreciated!
Rob