Is is possible to query and retrieve gmail through a script? I want to periodically check my gmail account, and if there is a new email with a particular sender and subject, download its attachment.
I have looked into using the fetchmail to create an offline backup of gmail. I'm sure this would work as I could then interrogate the local copy, but it seems a bit overkill to download all my email when it's only the one or two mails a week I need to action with this script.
Thanks
Bookmarks