1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-19 07:40:08 -07:00

Fixed error 440 no response var, added X-MimeOLE check for mailer

This commit is contained in:
Andrew Van Tassel 2011-08-11 09:20:35 -06:00
parent 18a942c88a
commit 1e6dbe88c8
31 changed files with 37 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

View File

@ -22,7 +22,7 @@ var mailHops =
showWeather: false, showWeather: false,
map: 'goog', map: 'goog',
unit: 'mi', unit: 'mi',
appVersion: 'MailHops Postbox 0.6.1' appVersion: 'MailHops Postbox 0.6.2'
} }
mailHops.init = function() 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 headXMailer = mailHops.headers.extractHeader ( "X-Mailer" , false ) ;
var headUserAgent = mailHops.headers.extractHeader ( "User-Agent" , 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 headReceivedSPF = mailHops.headers.extractHeader ( "Received-SPF" , false ) ;
var headAuth = mailHops.headers.extractHeader ( "Authentication-Results" , false ) ; var headAuth = mailHops.headers.extractHeader ( "Authentication-Results" , false ) ;
//display auth //display auth
mailHops.displayResultAuth(headXMailer,headUserAgent,headAuth,headReceivedSPF); mailHops.displayResultAuth(headXMailer,headUserAgent,headXMimeOLE,headAuth,headReceivedSPF);
var received_ips; var received_ips;
var all_ips = new Array(); 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 ){ if ( all_ips.length != 0 ){
mailHops.lookup ( all_ips ) ; mailHops.lookup ( all_ips ) ;
} else { } 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 //another ip check, dates will throw off the regex
@ -229,7 +230,7 @@ mailHops.testIP = function(ip,header){
return retval; 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 //SPF
if(header_spf){ if(header_spf){
@ -284,7 +285,7 @@ mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_
else{ else{
mailHops.mailhopsDataPaneDKIM.style.display='none'; mailHops.mailhopsDataPaneDKIM.style.display='none';
} }
//X-Mailer or User-Agent //X-Mailer, User-Agent or X-MimeOLE
if(header_xmailer){ if(header_xmailer){
mailHops.mailhopsDataPaneMailer.style.backgroundImage = 'url(chrome://mailhops/content/images/email.png)'; mailHops.mailhopsDataPaneMailer.style.backgroundImage = 'url(chrome://mailhops/content/images/email.png)';
if(header_xmailer.indexOf('(')!=-1) if(header_xmailer.indexOf('(')!=-1)
@ -306,6 +307,22 @@ mailHops.displayResultAuth = function( header_xmailer, header_useragent, header_
mailHops.mailhopsDataPaneMailer.setAttribute('tooltiptext',header_useragent); mailHops.mailhopsDataPaneMailer.setAttribute('tooltiptext',header_useragent);
mailHops.mailhopsDataPaneMailer.style.display='block'; 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 { else {
mailHops.mailhopsDataPaneMailer.style.display='none'; mailHops.mailhopsDataPaneMailer.style.display='none';
} }
@ -437,7 +454,9 @@ mailHops.displayResult = function ( header_route, response ){
mailHops.resultDetails.removeChild(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 //get the first hop location
if(!gotFirst && !response.route[i].private && !response.route[i].client){ if(!gotFirst && !response.route[i].private && !response.route[i].client){
if(response.route[i].countryCode) if(response.route[i].countryCode)
@ -503,6 +522,7 @@ mailHops.displayResult = function ( header_route, response ){
mailHops.mailhopsDataPaneDNSBL.style.display = 'block'; mailHops.mailhopsDataPaneDNSBL.style.display = 'block';
} }
}
} }
if(image.indexOf('local')!=-1) { if(image.indexOf('local')!=-1) {
@ -523,8 +543,12 @@ mailHops.displayResult = function ( header_route, response ){
displayText = ' Local message.'; 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.style.backgroundImage = 'url('+image+')';
mailHops.resultTextDataPane.value = displayText; mailHops.resultTextDataPane.value = displayText;
mailHops.resultTextDataPane.setAttribute('tooltiptext',displayText+' '+distanceText); mailHops.resultTextDataPane.setAttribute('tooltiptext',displayText+' '+distanceText);

View File

@ -34,12 +34,12 @@
<vbox id="dataPaneMailHopsAuthContainer" class="dataPaneBox"> <vbox id="dataPaneMailHopsAuthContainer" class="dataPaneBox">
<hbox flex="1" pack="start" align="center"> <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> <separator class="dataPaneBoxSeparator" flex="1"></separator>
</hbox> </hbox>
<vbox id="mailhopsAuthDataPane" flex="1"> <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="mailhopsDataPaneSPF" class="dataPaneAddressitem auth-item" value="" tooltiptext="SPF"></label>
<label id="mailhopsDataPaneDKIM" class="dataPaneAddressitem auth-item" value="" tooltiptext="DKIM"></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> <label id="mailhopsDataPaneDNSBL" class="text-link dataPaneAddressitem auth-item" value="" tooltiptext="DNSBL"></label>

View File

@ -7,7 +7,7 @@
<em:id>postbox@mailhops.com</em:id> <em:id>postbox@mailhops.com</em:id>
<em:type>2</em:type> <em:type>2</em:type>
<em:name>MailHops</em:name> <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: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:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL>
<em:homepageURL>http://mailhops.com</em:homepageURL> <em:homepageURL>http://mailhops.com</em:homepageURL>

BIN
mailhops-0.4.6-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.4.6-tb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.4.7-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.4.8-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.5-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.6-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.6.1-pb.xpi Normal file

Binary file not shown.

BIN
mailhops-0.6.2-pb.xpi Normal file

Binary file not shown.