 			div
 
 		getMessageId: ->
-			address = window.location.href
-
-			catPos = address.lastIndexOf '#'
-			slashPos = address.lastIndexOf '/'
-			if catPos > slashPos
+			id = /[0-9a-f]{16}/.exec window.location.hash
+			if id is null
 				throw __msg 'errorNotWithinAConversation'
 			else
-				address.substr (1 + slashPos)
+				id[0]
 
 		onSchedule: (props, loadingIcon, resetIcon) =>
 			try

				return

			

		getSettingEmail: (resp) ->
			chrome.extension.sendMessage {action: "setting", key: 'email'}, resp

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

		currentView: null

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