I've built a gmail contextual gadget, and it does what I need it to within the context of a gmail message. For the additional features I am looking to incorporate, it looks like the IMAP API is required.
My question is how to house both of those under one gadget?
For instance, I've seen apps that do things like change the label of an email or send a message to archive with a button. Since the gadget itself cannot do that (but the button that initiates it is in the gadget), what is the actual method to "link" the button trigger with the server side code calling the IMAP function? I've seen lots of answers instructing people that they need to do this, but I am stumped on the actual implementation. Also, would that mean changing the scope of my widget (since IMAP can pretty much do/access anything email related)
Sorry for muddling several questions there, but I am pretty confused. thanks for any help on this...