So last time I posted I said that I wanted to develop a widget of sorts that gave the user the ability to save message threads from Gmail into a CRM application. From what I researched there was two possible solutions to the problem that I was facing one was to use an application called Rapportive and the other was to use Google’s new Gmail Gadgets API.
Though I said that Rapportive gave a nice interface and had potential, I found out that it could fail if Google ever decides to change its email interface. This actually came true recently with something called Google People which adds a bar with contact information on the right side of your email. Though with this recent change it didn’t affect my idea of creating a button to do the features that I wanted.
To get more info on building the gadget you can follow this guide.
There are two parts to building a gadget and that’s to have the gadget itself and a manifest that reads where the gadget is hosted whenever you load your gmail.
In the application manifest what you need a couple of things. One of those things is what google calls extractors, which are used to search certain sections of your email for whatever regular expression you want to look for. These extractors can be used to trigger your application to run whenever the desired regular expression appears. In the following example for all my extractors I wanted to display the gadget I created for all possible strings inside my Message ID, Recipient Email, Sender Email, and Subject line.