Posted 26 February 2013 - 06:50 AM
Gmail Alert Viewer
(90% Complete - Just Debugging)
What is it?
Gmail Alert Viewer is a program I wrote that allows your computer to retrieve messages from your GMail that have the string [CC] at the start of the subject and return the message as a Lua friendly table.
How does it work?
Google Apps Scripts
Google Apps Scripts is a framework developed by Google that allows users to write macros and automate tasks for google apps such as Gmail , Google Drive or calender. It has support for creating web applications and support for making your own RESTful apis
I used Google Apps Scripts easy and simple Gmail Libraries and the documentation to make a simple script that will loop over the latest 50 emails in your inbox, when it finds one with [CC] at the start of the heading it takes the message instance and parses it to another function which then uses regular expressions to substitute the content of the message into a stringified lua table.
This table is then sent back to the client computer which can then use the loadstring() function to declare as a variable and use
Anyone can use this script if they have the url, but they will also need a short secret code used as loose authentication between the client and script. Even if this code was to be bypassed no sensitive information could be leaked provided you do not have sensitive data parsing through messages where the start of the message subject is [CC]
How can I use it?
To use simply set up the App Script and import the Lua file onto your computer.
Change the magic word on both and make sure the lua key is referring to your Macro.
The script is not supposed it be used on its own, all it will do is return a email table if sucessfull.
The table will be structured as so
Table
["email_subject"]
["email_body"]
How can I get it
Feel Free to fork or download it from the public git I have established
This project is open source and still in development.
It is buggy and un-reliable
LINK
How do I set it up?
If there is any interest I will produce a tutorial