mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-28 03:40:10 -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,
|
||||
map: 'goog',
|
||||
unit: 'mi',
|
||||
appVersion: 'MailHops '+gApp+' 0.4.3'
|
||||
appVersion: 'MailHops '+gApp+' 0.4.4'
|
||||
}
|
||||
|
||||
mailHops.startLoading = function()
|
||||
@ -115,12 +115,11 @@ mailHops.dispRoute = function()
|
||||
if ( headReceived ){
|
||||
var headReceivedArr = headReceived.split('\n');
|
||||
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
|
||||
if(headReceivedArr[h].indexOf(';')==-1){
|
||||
rline += headReceivedArr[h];
|
||||
continue;
|
||||
}
|
||||
rline += headReceivedArr[h];
|
||||
if(headReceivedArr[h].indexOf(';')==-1)
|
||||
continue;
|
||||
received_ips = rline.match(gAllIPRegEx);
|
||||
//maybe multiple IPs in one Received: line
|
||||
if(received_ips != null && received_ips.length !=0){
|
||||
|
@ -8,7 +8,7 @@
|
||||
<em:type>2</em:type>
|
||||
|
||||
<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:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL>
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user