diff --git a/chrome/content/images/auth/bomb.png b/chrome/content/images/auth/bomb.png new file mode 100644 index 0000000..1be3797 Binary files /dev/null and b/chrome/content/images/auth/bomb.png differ diff --git a/chrome/content/images/auth/error.png b/chrome/content/images/auth/error.png new file mode 100644 index 0000000..628cf2d Binary files /dev/null and b/chrome/content/images/auth/error.png differ diff --git a/chrome/content/images/auth/fail.png b/chrome/content/images/auth/fail.png new file mode 100644 index 0000000..0cd8031 Binary files /dev/null and b/chrome/content/images/auth/fail.png differ diff --git a/chrome/content/images/auth/neutral.png b/chrome/content/images/auth/neutral.png new file mode 100644 index 0000000..a7651ec Binary files /dev/null and b/chrome/content/images/auth/neutral.png differ diff --git a/chrome/content/images/auth/none.png b/chrome/content/images/auth/none.png new file mode 100644 index 0000000..a9af8d4 Binary files /dev/null and b/chrome/content/images/auth/none.png differ diff --git a/chrome/content/images/auth/pass.png b/chrome/content/images/auth/pass.png new file mode 100644 index 0000000..058ad26 Binary files /dev/null and b/chrome/content/images/auth/pass.png differ diff --git a/chrome/content/images/auth/permerror.png b/chrome/content/images/auth/permerror.png new file mode 100644 index 0000000..fa63024 Binary files /dev/null and b/chrome/content/images/auth/permerror.png differ diff --git a/chrome/content/images/auth/policy.png b/chrome/content/images/auth/policy.png new file mode 100644 index 0000000..3b0ccad Binary files /dev/null and b/chrome/content/images/auth/policy.png differ diff --git a/chrome/content/images/auth/softfail.png b/chrome/content/images/auth/softfail.png new file mode 100644 index 0000000..0c9f73e Binary files /dev/null and b/chrome/content/images/auth/softfail.png differ diff --git a/chrome/content/images/auth/temperror.png b/chrome/content/images/auth/temperror.png new file mode 100644 index 0000000..6469cea Binary files /dev/null and b/chrome/content/images/auth/temperror.png differ diff --git a/chrome/content/images/email.png b/chrome/content/images/email.png new file mode 100644 index 0000000..7348aed Binary files /dev/null and b/chrome/content/images/email.png differ diff --git a/chrome/content/images/weather/clear.png b/chrome/content/images/weather/clear.png new file mode 100644 index 0000000..c86a9a9 Binary files /dev/null and b/chrome/content/images/weather/clear.png differ diff --git a/chrome/content/images/weather/clear_night.png b/chrome/content/images/weather/clear_night.png new file mode 100644 index 0000000..6b9e48d Binary files /dev/null and b/chrome/content/images/weather/clear_night.png differ diff --git a/chrome/content/images/weather/clouds.png b/chrome/content/images/weather/clouds.png new file mode 100644 index 0000000..3f73eaa Binary files /dev/null and b/chrome/content/images/weather/clouds.png differ diff --git a/chrome/content/images/weather/cloudy.png b/chrome/content/images/weather/cloudy.png new file mode 100644 index 0000000..5856e1d Binary files /dev/null and b/chrome/content/images/weather/cloudy.png differ diff --git a/chrome/content/images/weather/cloudy_night.png b/chrome/content/images/weather/cloudy_night.png new file mode 100644 index 0000000..5c86dd4 Binary files /dev/null and b/chrome/content/images/weather/cloudy_night.png differ diff --git a/chrome/content/images/weather/lightning.png b/chrome/content/images/weather/lightning.png new file mode 100644 index 0000000..1d42b36 Binary files /dev/null and b/chrome/content/images/weather/lightning.png differ diff --git a/chrome/content/images/weather/rain.png b/chrome/content/images/weather/rain.png new file mode 100644 index 0000000..cb3d54d Binary files /dev/null and b/chrome/content/images/weather/rain.png differ diff --git a/chrome/content/images/weather/snow.png b/chrome/content/images/weather/snow.png new file mode 100644 index 0000000..45bbdf1 Binary files /dev/null and b/chrome/content/images/weather/snow.png differ diff --git a/chrome/content/images/weather/sun.png b/chrome/content/images/weather/sun.png new file mode 100644 index 0000000..0156c26 Binary files /dev/null and b/chrome/content/images/weather/sun.png differ diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js index a670b72..4913733 100644 --- a/chrome/content/mailhops.js +++ b/chrome/content/mailhops.js @@ -22,7 +22,7 @@ var mailHops = showWeather: false, map: 'goog', unit: 'mi', - appVersion: 'MailHops Postbox 0.6.1' + appVersion: 'MailHops Postbox 0.6.2' } mailHops.init = function() @@ -155,11 +155,12 @@ var regexAllIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{ var headXMailer = mailHops.headers.extractHeader ( "X-Mailer" , false ) ; var headUserAgent = mailHops.headers.extractHeader ( "User-Agent" , false ) ; + var headXMimeOLE = mailHops.headers.extractHeader ( "X-MimeOLE" , false ) ; var headReceivedSPF = mailHops.headers.extractHeader ( "Received-SPF" , false ) ; var headAuth = mailHops.headers.extractHeader ( "Authentication-Results" , false ) ; //display auth - mailHops.displayResultAuth(headXMailer,headUserAgent,headAuth,headReceivedSPF); + mailHops.displayResultAuth(headXMailer,headUserAgent,headXMimeOLE,headAuth,headReceivedSPF); var received_ips; var all_ips = new Array(); @@ -198,7 +199,7 @@ var regexAllIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{ if ( all_ips.length != 0 ){ mailHops.lookup ( all_ips ) ; } else { - mailHops.displayResult('chrome://mailhops/content/images/local.png',null,null,null,null,null); + mailHops.displayResult(); } }; //another ip check, dates will throw off the regex @@ -229,7 +230,7 @@ mailHops.testIP = function(ip,header){ return retval; }; -mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_auth, header_spf ){ +mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_xmimeole, header_auth, header_spf ){ //SPF if(header_spf){ @@ -284,7 +285,7 @@ mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_ else{ mailHops.mailhopsDataPaneDKIM.style.display='none'; } - //X-Mailer or User-Agent + //X-Mailer, User-Agent or X-MimeOLE if(header_xmailer){ mailHops.mailhopsDataPaneMailer.style.backgroundImage = 'url(chrome://mailhops/content/images/email.png)'; if(header_xmailer.indexOf('(')!=-1) @@ -305,6 +306,22 @@ mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_ mailHops.mailhopsDataPaneMailer.setAttribute('value',header_useragent); mailHops.mailhopsDataPaneMailer.setAttribute('tooltiptext',header_useragent); mailHops.mailhopsDataPaneMailer.style.display='block'; + } + else if(header_xmimeole){ + mailHops.mailhopsDataPaneMailer.style.backgroundImage = 'url(chrome://mailhops/content/images/email.png)'; + + if(header_xmimeole.indexOf('(')!=-1) + header_xmimeole = header_xmimeole.substring(0,header_xmimeole.indexOf('(')); + else if(header_xmimeole.indexOf('[')!=-1) + header_xmimeole = header_xmimeole.substring(0,header_xmimeole.indexOf('[')); + + if(header_xmimeole.indexOf('Produced By ')!=-1) + mailHops.mailhopsDataPaneMailer.setAttribute('value',header_xmimeole.replace('Produced By ','')); + else + mailHops.mailhopsDataPaneMailer.setAttribute('value',header_xmimeole); + + mailHops.mailhopsDataPaneMailer.setAttribute('tooltiptext',header_xmimeole); + mailHops.mailhopsDataPaneMailer.style.display='block'; } else { mailHops.mailhopsDataPaneMailer.style.display='none'; @@ -436,8 +453,10 @@ mailHops.displayResult = function ( header_route, response ){ while(mailHops.resultDetails.firstChild) { mailHops.resultDetails.removeChild(mailHops.resultDetails.firstChild); } - - for(var i=0; i - + - + diff --git a/install.rdf b/install.rdf index ca404fd..fe4a5e6 100644 --- a/install.rdf +++ b/install.rdf @@ -7,7 +7,7 @@ postbox@mailhops.com 2 MailHops - 0.6.1 + 0.6.2 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.4.6-pb.xpi b/mailhops-0.4.6-pb.xpi new file mode 100644 index 0000000..df71704 Binary files /dev/null and b/mailhops-0.4.6-pb.xpi differ diff --git a/mailhops-0.4.6-tb.xpi b/mailhops-0.4.6-tb.xpi new file mode 100644 index 0000000..14d094c Binary files /dev/null and b/mailhops-0.4.6-tb.xpi differ diff --git a/mailhops-0.4.7-pb.xpi b/mailhops-0.4.7-pb.xpi new file mode 100644 index 0000000..7d92b0e Binary files /dev/null and b/mailhops-0.4.7-pb.xpi differ diff --git a/mailhops-0.4.8-pb.xpi b/mailhops-0.4.8-pb.xpi new file mode 100644 index 0000000..44c5ceb Binary files /dev/null and b/mailhops-0.4.8-pb.xpi differ diff --git a/mailhops-0.5-pb.xpi b/mailhops-0.5-pb.xpi new file mode 100644 index 0000000..b97ce93 Binary files /dev/null and b/mailhops-0.5-pb.xpi differ diff --git a/mailhops-0.6-pb.xpi b/mailhops-0.6-pb.xpi new file mode 100644 index 0000000..c295d88 Binary files /dev/null and b/mailhops-0.6-pb.xpi differ diff --git a/mailhops-0.6.1-pb.xpi b/mailhops-0.6.1-pb.xpi new file mode 100644 index 0000000..5927d7f Binary files /dev/null and b/mailhops-0.6.1-pb.xpi differ diff --git a/mailhops-0.6.2-pb.xpi b/mailhops-0.6.2-pb.xpi new file mode 100644 index 0000000..88144ee Binary files /dev/null and b/mailhops-0.6.2-pb.xpi differ