dihewidd has asked for the wisdom of the Perl Monks concerning the following question:
Goal: Read newest message in gmail, look for keywords in message body, delete message. Repeat on a cron job every 10 minutes.
I'm thinking IMAP, hence my earlier issue with a dependency of Net::IMAP::Simple. But is there something better, or something already designed for this?
We send out email confirmations at work, and a least a few times a day we get "undeliverable" ones that come back to us. Usually typos in the email address.
I've filtered all of these auto-replies from postmaster into a separate gmail account with IMAP access enabled.
Now, we need to detect our internal confirmation numbers in the message bodies so that we can have our perl scripts automatically alert staff of the customer name (having looked up the confirmation number) who needs to be contacted for updated information.
The ONLY problem I'm having is grabbing the messages from the gmail server
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Most elegant way to process an email in a gmail account?
by JavaFan (Canon) on Feb 06, 2012 at 12:23 UTC | |
|
Re: Most elegant way to process an email in a gmail account?
by jethro (Monsignor) on Feb 06, 2012 at 11:24 UTC | |
|
Re: Most elegant way to process an email in a gmail account?
by locked_user sundialsvc4 (Abbot) on Feb 06, 2012 at 13:48 UTC |