// ==UserScript==
// @name           Gmail GnuPG
// @namespace      http://web.chad.org/
// @description    Add GnuPG encryption and decryption and signing and verification
// @include        http://mail.google.com/*
// @include        https://mail.google.com/*
// ==/UserScript==

function enhanceConversation(var gmail) {
	var messageList = gmail.getActiveViewElement();
	window.alert(messageList);
}



window.addEventListener('load', function() {
	if (unsafeWindow.gmonkey) {
		unsafeWindow.gmonkey.load('1.0', function(gmail) {
			var viewType = gmail.gmail.getActiveViewType();

			if (viewType == "cv") {
				enhanceConversation(gmail);
			}
		});
	}
}, true);


// vim: ts=2 sw=2
