mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-06-01 05:20:08 -07:00
Fixed getting first IPs in Received list
This commit is contained in:
parent
e7ea383ed3
commit
90f4cd8f2d
@ -20,7 +20,7 @@ var mailHops =
|
|||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
map: 'goog',
|
map: 'goog',
|
||||||
unit: 'mi',
|
unit: 'mi',
|
||||||
appVersion: 'MailHops '+gApp+' 0.4.3'
|
appVersion: 'MailHops '+gApp+' 0.4.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
mailHops.startLoading = function()
|
mailHops.startLoading = function()
|
||||||
@ -115,12 +115,11 @@ mailHops.dispRoute = function()
|
|||||||
if ( headReceived ){
|
if ( headReceived ){
|
||||||
var headReceivedArr = headReceived.split('\n');
|
var headReceivedArr = headReceived.split('\n');
|
||||||
if(headReceivedArr.length != 0){
|
if(headReceivedArr.length != 0){
|
||||||
for ( var h=0; h<headReceivedArr.length; h++ ) {
|
for ( var h=0; h<headReceivedArr.length; h++ ) {
|
||||||
//build the received line by concat until semi-colon ; date/time
|
//build the received line by concat until semi-colon ; date/time
|
||||||
if(headReceivedArr[h].indexOf(';')==-1){
|
rline += headReceivedArr[h];
|
||||||
rline += headReceivedArr[h];
|
if(headReceivedArr[h].indexOf(';')==-1)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
received_ips = rline.match(gAllIPRegEx);
|
received_ips = rline.match(gAllIPRegEx);
|
||||||
//maybe multiple IPs in one Received: line
|
//maybe multiple IPs in one Received: line
|
||||||
if(received_ips != null && received_ips.length !=0){
|
if(received_ips != null && received_ips.length !=0){
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<em:type>2</em:type>
|
<em:type>2</em:type>
|
||||||
|
|
||||||
<em:name>MailHops</em:name>
|
<em:name>MailHops</em:name>
|
||||||
<em:version>0.4.3</em:version>
|
<em:version>0.4.4</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>
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user