Fixed error 440 no response var, added X-MimeOLE check for mailer
BIN
chrome/content/images/auth/bomb.png
Normal file
After Width: | Height: | Size: 793 B |
BIN
chrome/content/images/auth/error.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
chrome/content/images/auth/fail.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
chrome/content/images/auth/neutral.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
chrome/content/images/auth/none.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
chrome/content/images/auth/pass.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
chrome/content/images/auth/permerror.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
chrome/content/images/auth/policy.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
chrome/content/images/auth/softfail.png
Normal file
After Width: | Height: | Size: 286 B |
BIN
chrome/content/images/auth/temperror.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
chrome/content/images/email.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
chrome/content/images/weather/clear.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
chrome/content/images/weather/clear_night.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
chrome/content/images/weather/clouds.png
Normal file
After Width: | Height: | Size: 581 B |
BIN
chrome/content/images/weather/cloudy.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
chrome/content/images/weather/cloudy_night.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
chrome/content/images/weather/lightning.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
chrome/content/images/weather/rain.png
Normal file
After Width: | Height: | Size: 626 B |
BIN
chrome/content/images/weather/snow.png
Normal file
After Width: | Height: | Size: 341 B |
BIN
chrome/content/images/weather/sun.png
Normal file
After Width: | Height: | Size: 623 B |
@ -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<response.route.length;i++){
|
||||
|
||||
if(response){
|
||||
|
||||
for(var i=0; i<response.route.length;i++){
|
||||
//get the first hop location
|
||||
if(!gotFirst && !response.route[i].private && !response.route[i].client){
|
||||
if(response.route[i].countryCode)
|
||||
@ -503,8 +522,9 @@ mailHops.displayResult = function ( header_route, response ){
|
||||
mailHops.mailhopsDataPaneDNSBL.style.display = 'block';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(image.indexOf('local')!=-1) {
|
||||
displayText = ' Local message.';
|
||||
}
|
||||
@ -522,9 +542,13 @@ mailHops.displayResult = function ( header_route, response ){
|
||||
else if(displayText=='')
|
||||
displayText = ' Local message.';
|
||||
}
|
||||
|
||||
|
||||
//add event for route api map
|
||||
mailHops.resultMapLink.setAttribute("route", header_route);
|
||||
if(header_route)
|
||||
mailHops.resultMapLink.setAttribute("route", header_route);
|
||||
else
|
||||
mailHops.resultMapLink.removeAttribute("route");
|
||||
|
||||
mailHops.resultTextDataPane.style.backgroundImage = 'url('+image+')';
|
||||
mailHops.resultTextDataPane.value = displayText;
|
||||
mailHops.resultTextDataPane.setAttribute('tooltiptext',displayText+' '+distanceText);
|
||||
|
@ -34,12 +34,12 @@
|
||||
|
||||
<vbox id="dataPaneMailHopsAuthContainer" class="dataPaneBox">
|
||||
<hbox flex="1" pack="start" align="center">
|
||||
<label class="dataPaneHeader" crop="right" value="Authentication"></label>
|
||||
<label class="dataPaneHeader" crop="right" value="Mailer/Auth"></label>
|
||||
<separator class="dataPaneBoxSeparator" flex="1"></separator>
|
||||
</hbox>
|
||||
|
||||
<vbox id="mailhopsAuthDataPane" flex="1">
|
||||
<label id="mailhopsDataPaneMailer" class="dataPaneAddressitem auth-item" value="" tooltiptext="X-Mailer"></label>
|
||||
<label id="mailhopsDataPaneMailer" class="dataPaneAddressitem auth-item" value="" tooltiptext="Mailer"></label>
|
||||
<label id="mailhopsDataPaneSPF" class="dataPaneAddressitem auth-item" value="" tooltiptext="SPF"></label>
|
||||
<label id="mailhopsDataPaneDKIM" class="dataPaneAddressitem auth-item" value="" tooltiptext="DKIM"></label>
|
||||
<label id="mailhopsDataPaneDNSBL" class="text-link dataPaneAddressitem auth-item" value="" tooltiptext="DNSBL"></label>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<em:id>postbox@mailhops.com</em:id>
|
||||
<em:type>2</em:type>
|
||||
<em:name>MailHops</em:name>
|
||||
<em:version>0.6.1</em:version>
|
||||
<em:version>0.6.2</em:version>
|
||||
<em:description>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.</em:description>
|
||||
<em:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL>
|
||||
<em:homepageURL>http://mailhops.com</em:homepageURL>
|
||||
|