diff --git a/chrome/content/images/auth/hardfail.png b/chrome/content/images/auth/hardfail.png
new file mode 100644
index 0000000..0cd8031
Binary files /dev/null and b/chrome/content/images/auth/hardfail.png differ
diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js
index 52c1dd8..c019ab3 100644
--- a/chrome/content/mailhops.js
+++ b/chrome/content/mailhops.js
@@ -22,7 +22,7 @@ var mailHops =
resultListDataPane: null,
isLoaded: false,
options: {'map':'goog','unit':'mi','api_url':'http://api.mailhops.com'},
- appVersion: 'MailHops Postbox 0.6.9.3'
+ appVersion: 'MailHops Postbox 0.7'
}
mailHops.init = function()
@@ -54,9 +54,8 @@ mailHops.init = function()
//event listner for route click to launch map
mailHops.resultMapLink.addEventListener("click", function () {
- var route = this.getAttribute("route");
- if(route)
- mailHops.launchMap(String(route));
+ if(this.hasAttribute("data-route"))
+ mailHops.launchMap(String(this.getAttribute("data-route")));
}
, false);
mailHops.resultDetailsLink.addEventListener("click", function () {
@@ -72,8 +71,8 @@ mailHops.init = function()
, false);
mailHops.mailhopsDataPaneDNSBL.addEventListener("click", function () {
- var ip = this.getAttribute('data-ip');
- mailHops.launchSpamHausURL(ip);
+ if(this.hasAttribute('data-ip'))
+ mailHops.launchSpamHausURL(this.getAttribute('data-ip'));
}
, false);
@@ -641,9 +640,9 @@ mailHops.displayResult = function ( header_route, response ){
}
if(header_route)
- mailHops.resultMapLink.setAttribute("route", header_route);
+ mailHops.resultMapLink.setAttribute("data-route", header_route);
else
- mailHops.resultMapLink.removeAttribute("route");
+ mailHops.resultMapLink.removeAttribute("data-route");
mailHops.resultTextDataPane.style.backgroundImage = 'url('+image+')';
mailHops.resultTextDataPane.value = displayText;
@@ -836,20 +835,23 @@ mailHops.addCommas = function(nStr){
mailHops.launchWhoIs = function(ip){
var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance();
messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);
- messenger.launchExternalURL(encodeURIComponent('http://www.mailhops.com/whois/'+ip));
+ messenger.launchExternalURL('http://www.mailhops.com/whois/'+ip);
};
mailHops.launchSpamHausURL = function(ip){
var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance();
messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);
- messenger.launchExternalURL(encodeURIComponent('http://www.spamhaus.org/query/bl?ip='+ip));
+ messenger.launchExternalURL('http://www.spamhaus.org/query/bl?ip='+ip);
};
+
mailHops.launchMap = function(route){
- //launch mailhops api map
- var lookupURL=mailHops.options.api_url+'/v1/map/?pb&app='+mailHops.appVersion+'&m='+mailHops.options.map+'&u='+mailHops.options.unit+'&r='+String(route);
- if(mailHops.options.show_weather)
- lookupURL+='&w=1';
- var openwin = window.openDialog(encodeURIComponent(lookupURL),"MailHops",'toolbar=no,location=no,directories=no,menubar=yes,scrollbars=yes,close=yes,width=732,height=332');
- openwin.focus();
+
+ if(route != '') {
+ var lookupURL=mailHops.options.api_url+'/v1/map/?pb&app='+mailHops.appVersion+'&m='+mailHops.options.map+'&u='+mailHops.options.unit+'&r='+String(route);
+ if(mailHops.options.show_weather)
+ lookupURL+='&w=1';
+
+ window.openDialog("chrome://mailhops/content/mailhopsMap.xul","MailHops",'toolbar=no,location=no,directories=no,menubar=yes,scrollbars=yes,close=yes,width=742,height=385', {src: lookupURL});
+ }
};
addEventListener ( "messagepane-loaded" , mailHops.setupEventListener , true ) ;
diff --git a/chrome/content/mailhopsMap.xul b/chrome/content/mailhopsMap.xul
new file mode 100644
index 0000000..dcd8b64
--- /dev/null
+++ b/chrome/content/mailhopsMap.xul
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chrome/content/preferences.xul b/chrome/content/preferences.xul
index 5134033..10ea5a5 100644
--- a/chrome/content/preferences.xul
+++ b/chrome/content/preferences.xul
@@ -18,7 +18,6 @@
-
@@ -51,9 +50,7 @@
-
-
-
+
@@ -61,6 +58,7 @@
+
@@ -72,8 +70,8 @@
-
-
+
+
diff --git a/install.rdf b/install.rdf
index 144dd11..d87a20c 100644
--- a/install.rdf
+++ b/install.rdf
@@ -7,7 +7,7 @@
postbox@mailhops.com
2
MailHops
- 0.6.9.3
+ 0.7
MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.
chrome://mailhops/content/images/mailhops32.png
http://mailhops.com
diff --git a/mailhops-0.6.9.1-pb.xpi b/mailhops-0.6.9.1-pb.xpi
new file mode 100644
index 0000000..893a724
Binary files /dev/null and b/mailhops-0.6.9.1-pb.xpi differ
diff --git a/mailhops-0.6.9.2-pb.xpi b/mailhops-0.6.9.2-pb.xpi
new file mode 100644
index 0000000..16e6217
Binary files /dev/null and b/mailhops-0.6.9.2-pb.xpi differ
diff --git a/mailhops-0.6.9.3-pb.xpi b/mailhops-0.6.9.3-pb.xpi
new file mode 100644
index 0000000..57af303
Binary files /dev/null and b/mailhops-0.6.9.3-pb.xpi differ
diff --git a/mailhops-0.7.xpi b/mailhops-0.7.xpi
new file mode 100644
index 0000000..b42c93e
Binary files /dev/null and b/mailhops-0.7.xpi differ