 				return
 
 			
+		inConversation: ->
+			@currentView is 'conversation'
+
+		getArchiveButton: ->
+			$ '.'+"T-I J-J5-Ji lR T-I-ax7 T-I-Js-IF ar7".split(' ').join '.'
+		
+		activateArchiveButton: ->
+			return unless @inConversation()
+			button = @getArchiveButton().get 0
+			if button
+				Eventr.simulate button, 'mousedown'
+				Eventr.simulate button, 'mouseup'
+			return
 
 		getSettingEmail: (resp) ->
 			chrome.extension.sendMessage {action: "setting", key: 'email'}, resp


			log 'scheduling mail...', data

			# remove false values to transmit less data over the wire
			_.each data, (val, key) ->
				delete data[key] if val is false

		# Current GMail address of the logged in user
		currentGmail: null

		currentView: null

		constructor: ->
			window.addEventListener "message", @gmailrListener, false
			
