├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── PRIVACY.md
├── README.md
├── _locales
├── de
│ └── messages.json
├── en
│ └── messages.json
├── es
│ └── messages.json
├── fr
│ └── messages.json
├── ja
│ └── messages.json
├── pl
│ └── messages.json
├── pt-BR
│ └── messages.json
├── ru
│ └── messages.json
└── zh-CN
│ └── messages.json
├── build.sh
├── content
├── mailhops_details.xhtml
└── preferences.html
├── css
└── styles.css
├── images
├── auth
│ ├── bomb.png
│ ├── error.png
│ ├── fail.png
│ ├── hardfail.png
│ ├── lock.png
│ ├── neutral.png
│ ├── none.png
│ ├── not_secure.png
│ ├── pass.png
│ ├── permerror.png
│ ├── secure.png
│ ├── secure_host.png
│ ├── softfail.png
│ └── temperror.png
├── email.png
├── flags
│ ├── ad.png
│ ├── ae.png
│ ├── af.png
│ ├── ag.png
│ ├── ai.png
│ ├── al.png
│ ├── am.png
│ ├── an.png
│ ├── ao.png
│ ├── ar.png
│ ├── as.png
│ ├── at.png
│ ├── au.png
│ ├── aw.png
│ ├── ax.png
│ ├── az.png
│ ├── ba.png
│ ├── bb.png
│ ├── bd.png
│ ├── be.png
│ ├── bf.png
│ ├── bg.png
│ ├── bh.png
│ ├── bi.png
│ ├── bj.png
│ ├── bm.png
│ ├── bn.png
│ ├── bo.png
│ ├── br.png
│ ├── bs.png
│ ├── bt.png
│ ├── bv.png
│ ├── bw.png
│ ├── by.png
│ ├── bz.png
│ ├── ca.png
│ ├── catalonia.png
│ ├── cc.png
│ ├── cd.png
│ ├── cf.png
│ ├── cg.png
│ ├── ch.png
│ ├── ci.png
│ ├── ck.png
│ ├── cl.png
│ ├── cm.png
│ ├── cn.png
│ ├── co.png
│ ├── cr.png
│ ├── cs.png
│ ├── cu.png
│ ├── cv.png
│ ├── cx.png
│ ├── cy.png
│ ├── cz.png
│ ├── de.png
│ ├── dj.png
│ ├── dk.png
│ ├── dm.png
│ ├── do.png
│ ├── dz.png
│ ├── ec.png
│ ├── ee.png
│ ├── eg.png
│ ├── eh.png
│ ├── england.png
│ ├── er.png
│ ├── es.png
│ ├── et.png
│ ├── europeanunion.png
│ ├── fam.png
│ ├── fi.png
│ ├── fj.png
│ ├── fk.png
│ ├── fm.png
│ ├── fo.png
│ ├── fr.png
│ ├── ga.png
│ ├── gb.png
│ ├── gd.png
│ ├── ge.png
│ ├── gf.png
│ ├── gh.png
│ ├── gi.png
│ ├── gl.png
│ ├── gm.png
│ ├── gn.png
│ ├── gp.png
│ ├── gq.png
│ ├── gr.png
│ ├── gs.png
│ ├── gt.png
│ ├── gu.png
│ ├── gw.png
│ ├── gy.png
│ ├── hk.png
│ ├── hm.png
│ ├── hn.png
│ ├── hr.png
│ ├── ht.png
│ ├── hu.png
│ ├── id.png
│ ├── ie.png
│ ├── il.png
│ ├── in.png
│ ├── io.png
│ ├── iq.png
│ ├── ir.png
│ ├── is.png
│ ├── it.png
│ ├── jm.png
│ ├── jo.png
│ ├── jp.png
│ ├── ke.png
│ ├── kg.png
│ ├── kh.png
│ ├── ki.png
│ ├── km.png
│ ├── kn.png
│ ├── kp.png
│ ├── kr.png
│ ├── kw.png
│ ├── ky.png
│ ├── kz.png
│ ├── la.png
│ ├── lb.png
│ ├── lc.png
│ ├── li.png
│ ├── lk.png
│ ├── lr.png
│ ├── ls.png
│ ├── lt.png
│ ├── lu.png
│ ├── lv.png
│ ├── ly.png
│ ├── ma.png
│ ├── mc.png
│ ├── md.png
│ ├── me.png
│ ├── mg.png
│ ├── mh.png
│ ├── mk.png
│ ├── ml.png
│ ├── mm.png
│ ├── mn.png
│ ├── mo.png
│ ├── mp.png
│ ├── mq.png
│ ├── mr.png
│ ├── ms.png
│ ├── mt.png
│ ├── mu.png
│ ├── mv.png
│ ├── mw.png
│ ├── mx.png
│ ├── my.png
│ ├── mz.png
│ ├── na.png
│ ├── nc.png
│ ├── ne.png
│ ├── nf.png
│ ├── ng.png
│ ├── ni.png
│ ├── nl.png
│ ├── no.png
│ ├── np.png
│ ├── nr.png
│ ├── nu.png
│ ├── nz.png
│ ├── om.png
│ ├── pa.png
│ ├── pe.png
│ ├── pf.png
│ ├── pg.png
│ ├── ph.png
│ ├── pk.png
│ ├── pl.png
│ ├── pm.png
│ ├── pn.png
│ ├── pr.png
│ ├── ps.png
│ ├── pt.png
│ ├── pw.png
│ ├── py.png
│ ├── qa.png
│ ├── re.png
│ ├── ro.png
│ ├── rs.png
│ ├── ru.png
│ ├── rw.png
│ ├── sa.png
│ ├── sb.png
│ ├── sc.png
│ ├── scotland.png
│ ├── sd.png
│ ├── se.png
│ ├── sg.png
│ ├── sh.png
│ ├── si.png
│ ├── sj.png
│ ├── sk.png
│ ├── sl.png
│ ├── sm.png
│ ├── sn.png
│ ├── so.png
│ ├── sr.png
│ ├── st.png
│ ├── sv.png
│ ├── sy.png
│ ├── sz.png
│ ├── tc.png
│ ├── td.png
│ ├── tf.png
│ ├── tg.png
│ ├── th.png
│ ├── tj.png
│ ├── tk.png
│ ├── tl.png
│ ├── tm.png
│ ├── tn.png
│ ├── to.png
│ ├── tr.png
│ ├── tt.png
│ ├── tv.png
│ ├── tw.png
│ ├── tz.png
│ ├── ua.png
│ ├── ug.png
│ ├── um.png
│ ├── us.png
│ ├── uy.png
│ ├── uz.png
│ ├── va.png
│ ├── vc.png
│ ├── ve.png
│ ├── vg.png
│ ├── vi.png
│ ├── vn.png
│ ├── vu.png
│ ├── wales.png
│ ├── wf.png
│ ├── ws.png
│ ├── ye.png
│ ├── yt.png
│ ├── za.png
│ ├── zm.png
│ └── zw.png
├── help.png
├── hop.svg
├── host.png
├── info.png
├── ipv6.svg
├── loader.gif
├── local.png
├── mailhops-logo.png
├── mailhops-logo.svg
├── mailhops16.png
├── mailhops24.png
├── mailhops32.png
├── openweathermap.png
├── refresh.png
├── screenshot-dashboard.png
├── screenshot-display.png
├── screenshot-map.png
├── screenshot-notificationbar.png
├── screenshot-notificationbar2.png
├── screenshot-tb78-preferences.png
├── screenshot-tb78-view.png
├── w3w.png
└── weather
│ ├── clear.png
│ ├── clear_night.png
│ ├── clouds.png
│ ├── cloudy.png
│ ├── cloudy_night.png
│ ├── lightning.png
│ ├── rain.png
│ ├── snow.png
│ └── sun.png
├── js
├── bootstrap.js
├── mailhops.js
├── mailhops_details.js
├── preferences.js
└── utils.js
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | *.xpi
2 | .DS_Store
3 | xpisign.py
4 | *.zip
5 | NOTES.md
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | ## 4.4.0 - 2023-04-07
4 |
5 | - Refactored by @jobisoft to removed experimental framework and updated to work with TB 112.*
6 |
7 | ## 4.3.3 - 2022-06-20
8 |
9 | - Added support for Thunderbird 102.*
10 |
11 | ## 4.3.0 - 2021-09-10
12 |
13 | - Added support for Thunderbird 93
14 | - Added country filter option
15 | - Fixes map launching on cached messages
16 |
17 | ## 4.2.1 - 2021-03-29
18 |
19 | - Added a check for parsing the mail date. A bad formatted message date was failing to load the plugin.
20 |
21 | ## 4.2.0 - 2021-03-23
22 |
23 | - Added dark/light mode option.
24 | - Fixed display if html characters exist in ASN name.
25 | - Changed default for travel_time_junk option to off.
26 |
27 | ## 4.1.0 - 2020-11-12
28 |
29 | - Added daily message cache.
30 | - Added retrieve API key in preferences.
31 |
32 | ## 4.0.3 - 2020-11-11
33 |
34 | - Fixed km distance unit
35 |
36 | ## 4.0.2 - 2020-11-11
37 |
38 | - TB78 Updates
39 |
40 | ## 4.0.0 - 2020-11-10
41 | - Support for Thunderbird 78.*
42 | - Complete rewrite of code structure
43 | - (thanks to Jürgen Ernst and his [Display mail user agent](https://addons.thunderbird.net/ja/thunderbird/addon/display-mail-user-agent-t/) for some direction)
44 |
45 | ## 3.8.0 - 2020-06-02
46 |
47 | ### Added
48 | - ASN Org in hops list [https://en.wikipedia.org/wiki/Autonomous_system_(Internet)](https://en.wikipedia.org/wiki/Autonomous_system_(Internet))
49 |
50 | ## 3.6.8 - 2019-12-09
51 |
52 | ### Added
53 | - Support for Thunderbird 68.*
54 |
55 | # Change Log
56 |
57 | ## 3.2 - 2019-04-03
58 |
59 | ### Added
60 | - Country column to message list
61 |
62 | ## 3.1.4 - 2017-07-24
63 |
64 | ### Fixed
65 | - IP test when IP regex finds a semantic version with a trailing colon
66 |
67 | ## 3.1.3 - 2017-07-22
68 |
69 | ### Added
70 | - Secure host icon to hop list
71 |
72 | ### Changed
73 | - Moved hop list from drop down to new layout bubble
74 |
75 | ## 3.1.2 - 2017-07-18
76 |
77 | ### Fixed
78 | - Account Message Bubble
79 |
80 | ## 3.1.1 - 2017-07-15
81 |
82 | ### Added
83 | - Language Pull Requests
84 | - Account Messages
85 |
86 | ### Fixed
87 | - Missing blacklisted icon in MailHops bar
88 |
89 | ## 3.1.0 - 2017-02-21
90 |
91 | ### Fixed
92 | - IP order when Received header has multiple IPs.
93 |
94 | ## 3.0.3 - 2017-01-13
95 |
96 | ### Added
97 | - More locale translations for preferences
98 |
99 | ### Fixed
100 | - Messages marked as local due to missing countryCode but had coords
101 | - Missing preferences styles
102 |
103 | ## 3.0.2 - 2017-01-12
104 |
105 | ### Added
106 | - Display option for hiding the MailHops bar for CompactHeaders add-on
107 | - Started adding locale translations for preferences
108 |
109 | ## 3.0.1 - 2017-01-07
110 |
111 | ### Added
112 | - Display styles in settings to customize MailHops bar background color, font color and font size
113 | - Polish language locale
114 |
115 | ### Removed
116 | - Display show options, data is now always shown for:
117 | - Unsubscribe link
118 | - Mailer
119 | - DKIM
120 | - SPF
121 | - DNSBL
122 |
123 | ### Fixed
124 | - Received header id parsed as an IP address
125 | - MailHops bar showing up on load with no message selected
126 |
127 |
128 | ## 3.0.0 - 2016-12-26
129 |
130 | ### Added
131 | - MailHops Bar for matching styles across supported mail clients
132 |
133 | ### Removed
134 | - Thunderbird specific styles and MailHops bar from the header
135 | - Postbox specific styles and MailHops sidebar display
136 |
137 | ## 2.0.0 - 2016-10-10
138 |
139 | ### Added
140 | - MailHops API v2 membership
141 | - Filters section in preferences
142 | - Tag and mark as junk by CountryCode
143 | - Time Traveled, total time it took for the email to reach you
144 |
145 | ### Fixed
146 | - Bug if multiple IPs exist in one Received header
147 | - Check for API response HTTP status code
148 |
149 |
150 | ## 1.0.8 - 2016-5-25
151 |
152 | ### Added
153 | - Styles Updates
154 | - SSL Default
155 |
156 | ## 1.0.7 - 2015-11-13
157 |
158 | ### Fixed
159 | - Check that IP address starts with digit less than 240 (IANA-RESERVED)
160 |
161 |
162 | ## 1.0.6 - 2015-11-12
163 |
164 | ### Fixed
165 | - Missing try/catch around JSON.parse
166 |
167 |
168 | ## 1.0.3 - 2015-09-18
169 |
170 | ### Added
171 | - Map provider in preferences
172 |
173 | ### Fixed
174 | - Save language in preferences
175 | - Display if only city in response
176 |
177 |
178 | ## 1.0.1 - 2015-06-10
179 | ### Added
180 | - Context.IO sponsored message, build something awesome with their API!
181 |
182 | ### Fixed
183 | - Removed loading indicator when no received headers found
184 | - Secure message parsing
185 |
186 |
187 | ## 1.0.0 - 2015-05-31
188 | ### Changed
189 | - Combined Thunderbird and Postbox code into one plugin
190 |
191 | ### Fixed
192 | - Fix mismatch IP from Microsoft SMTP id in received header
193 |
194 |
195 | ## 0.9.0 - 2015-05-30
196 | ### Changed
197 | - Update map style and size
198 | - Update logo
199 |
200 | ### Added
201 | - IPV6 support
202 | - Language support for 'de','en','es','fr','ja','pt-BR','ru','zh-CN'
203 | - What3Words, gets the 3 words for the geo of the sender
204 | - Forecast.IO, gets the weather from the sender, API key needs to be added in preferences
205 |
206 | ### Fixed
207 | - Fix mismatch IP from Microsoft SMTP id in Received header
208 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Mozilla Public License Version 2.0
2 | ==================================
3 |
4 | 1. Definitions
5 | --------------
6 |
7 | 1.1. "Contributor"
8 | means each individual or legal entity that creates, contributes to
9 | the creation of, or owns Covered Software.
10 |
11 | 1.2. "Contributor Version"
12 | means the combination of the Contributions of others (if any) used
13 | by a Contributor and that particular Contributor's Contribution.
14 |
15 | 1.3. "Contribution"
16 | means Covered Software of a particular Contributor.
17 |
18 | 1.4. "Covered Software"
19 | means Source Code Form to which the initial Contributor has attached
20 | the notice in Exhibit A, the Executable Form of such Source Code
21 | Form, and Modifications of such Source Code Form, in each case
22 | including portions thereof.
23 |
24 | 1.5. "Incompatible With Secondary Licenses"
25 | means
26 |
27 | (a) that the initial Contributor has attached the notice described
28 | in Exhibit B to the Covered Software; or
29 |
30 | (b) that the Covered Software was made available under the terms of
31 | version 1.1 or earlier of the License, but not also under the
32 | terms of a Secondary License.
33 |
34 | 1.6. "Executable Form"
35 | means any form of the work other than Source Code Form.
36 |
37 | 1.7. "Larger Work"
38 | means a work that combines Covered Software with other material, in
39 | a separate file or files, that is not Covered Software.
40 |
41 | 1.8. "License"
42 | means this document.
43 |
44 | 1.9. "Licensable"
45 | means having the right to grant, to the maximum extent possible,
46 | whether at the time of the initial grant or subsequently, any and
47 | all of the rights conveyed by this License.
48 |
49 | 1.10. "Modifications"
50 | means any of the following:
51 |
52 | (a) any file in Source Code Form that results from an addition to,
53 | deletion from, or modification of the contents of Covered
54 | Software; or
55 |
56 | (b) any new file in Source Code Form that contains any Covered
57 | Software.
58 |
59 | 1.11. "Patent Claims" of a Contributor
60 | means any patent claim(s), including without limitation, method,
61 | process, and apparatus claims, in any patent Licensable by such
62 | Contributor that would be infringed, but for the grant of the
63 | License, by the making, using, selling, offering for sale, having
64 | made, import, or transfer of either its Contributions or its
65 | Contributor Version.
66 |
67 | 1.12. "Secondary License"
68 | means either the GNU General Public License, Version 2.0, the GNU
69 | Lesser General Public License, Version 2.1, the GNU Affero General
70 | Public License, Version 3.0, or any later versions of those
71 | licenses.
72 |
73 | 1.13. "Source Code Form"
74 | means the form of the work preferred for making modifications.
75 |
76 | 1.14. "You" (or "Your")
77 | means an individual or a legal entity exercising rights under this
78 | License. For legal entities, "You" includes any entity that
79 | controls, is controlled by, or is under common control with You. For
80 | purposes of this definition, "control" means (a) the power, direct
81 | or indirect, to cause the direction or management of such entity,
82 | whether by contract or otherwise, or (b) ownership of more than
83 | fifty percent (50%) of the outstanding shares or beneficial
84 | ownership of such entity.
85 |
86 | 2. License Grants and Conditions
87 | --------------------------------
88 |
89 | 2.1. Grants
90 |
91 | Each Contributor hereby grants You a world-wide, royalty-free,
92 | non-exclusive license:
93 |
94 | (a) under intellectual property rights (other than patent or trademark)
95 | Licensable by such Contributor to use, reproduce, make available,
96 | modify, display, perform, distribute, and otherwise exploit its
97 | Contributions, either on an unmodified basis, with Modifications, or
98 | as part of a Larger Work; and
99 |
100 | (b) under Patent Claims of such Contributor to make, use, sell, offer
101 | for sale, have made, import, and otherwise transfer either its
102 | Contributions or its Contributor Version.
103 |
104 | 2.2. Effective Date
105 |
106 | The licenses granted in Section 2.1 with respect to any Contribution
107 | become effective for each Contribution on the date the Contributor first
108 | distributes such Contribution.
109 |
110 | 2.3. Limitations on Grant Scope
111 |
112 | The licenses granted in this Section 2 are the only rights granted under
113 | this License. No additional rights or licenses will be implied from the
114 | distribution or licensing of Covered Software under this License.
115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a
116 | Contributor:
117 |
118 | (a) for any code that a Contributor has removed from Covered Software;
119 | or
120 |
121 | (b) for infringements caused by: (i) Your and any other third party's
122 | modifications of Covered Software, or (ii) the combination of its
123 | Contributions with other software (except as part of its Contributor
124 | Version); or
125 |
126 | (c) under Patent Claims infringed by Covered Software in the absence of
127 | its Contributions.
128 |
129 | This License does not grant any rights in the trademarks, service marks,
130 | or logos of any Contributor (except as may be necessary to comply with
131 | the notice requirements in Section 3.4).
132 |
133 | 2.4. Subsequent Licenses
134 |
135 | No Contributor makes additional grants as a result of Your choice to
136 | distribute the Covered Software under a subsequent version of this
137 | License (see Section 10.2) or under the terms of a Secondary License (if
138 | permitted under the terms of Section 3.3).
139 |
140 | 2.5. Representation
141 |
142 | Each Contributor represents that the Contributor believes its
143 | Contributions are its original creation(s) or it has sufficient rights
144 | to grant the rights to its Contributions conveyed by this License.
145 |
146 | 2.6. Fair Use
147 |
148 | This License is not intended to limit any rights You have under
149 | applicable copyright doctrines of fair use, fair dealing, or other
150 | equivalents.
151 |
152 | 2.7. Conditions
153 |
154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155 | in Section 2.1.
156 |
157 | 3. Responsibilities
158 | -------------------
159 |
160 | 3.1. Distribution of Source Form
161 |
162 | All distribution of Covered Software in Source Code Form, including any
163 | Modifications that You create or to which You contribute, must be under
164 | the terms of this License. You must inform recipients that the Source
165 | Code Form of the Covered Software is governed by the terms of this
166 | License, and how they can obtain a copy of this License. You may not
167 | attempt to alter or restrict the recipients' rights in the Source Code
168 | Form.
169 |
170 | 3.2. Distribution of Executable Form
171 |
172 | If You distribute Covered Software in Executable Form then:
173 |
174 | (a) such Covered Software must also be made available in Source Code
175 | Form, as described in Section 3.1, and You must inform recipients of
176 | the Executable Form how they can obtain a copy of such Source Code
177 | Form by reasonable means in a timely manner, at a charge no more
178 | than the cost of distribution to the recipient; and
179 |
180 | (b) You may distribute such Executable Form under the terms of this
181 | License, or sublicense it under different terms, provided that the
182 | license for the Executable Form does not attempt to limit or alter
183 | the recipients' rights in the Source Code Form under this License.
184 |
185 | 3.3. Distribution of a Larger Work
186 |
187 | You may create and distribute a Larger Work under terms of Your choice,
188 | provided that You also comply with the requirements of this License for
189 | the Covered Software. If the Larger Work is a combination of Covered
190 | Software with a work governed by one or more Secondary Licenses, and the
191 | Covered Software is not Incompatible With Secondary Licenses, this
192 | License permits You to additionally distribute such Covered Software
193 | under the terms of such Secondary License(s), so that the recipient of
194 | the Larger Work may, at their option, further distribute the Covered
195 | Software under the terms of either this License or such Secondary
196 | License(s).
197 |
198 | 3.4. Notices
199 |
200 | You may not remove or alter the substance of any license notices
201 | (including copyright notices, patent notices, disclaimers of warranty,
202 | or limitations of liability) contained within the Source Code Form of
203 | the Covered Software, except that You may alter any license notices to
204 | the extent required to remedy known factual inaccuracies.
205 |
206 | 3.5. Application of Additional Terms
207 |
208 | You may choose to offer, and to charge a fee for, warranty, support,
209 | indemnity or liability obligations to one or more recipients of Covered
210 | Software. However, You may do so only on Your own behalf, and not on
211 | behalf of any Contributor. You must make it absolutely clear that any
212 | such warranty, support, indemnity, or liability obligation is offered by
213 | You alone, and You hereby agree to indemnify every Contributor for any
214 | liability incurred by such Contributor as a result of warranty, support,
215 | indemnity or liability terms You offer. You may include additional
216 | disclaimers of warranty and limitations of liability specific to any
217 | jurisdiction.
218 |
219 | 4. Inability to Comply Due to Statute or Regulation
220 | ---------------------------------------------------
221 |
222 | If it is impossible for You to comply with any of the terms of this
223 | License with respect to some or all of the Covered Software due to
224 | statute, judicial order, or regulation then You must: (a) comply with
225 | the terms of this License to the maximum extent possible; and (b)
226 | describe the limitations and the code they affect. Such description must
227 | be placed in a text file included with all distributions of the Covered
228 | Software under this License. Except to the extent prohibited by statute
229 | or regulation, such description must be sufficiently detailed for a
230 | recipient of ordinary skill to be able to understand it.
231 |
232 | 5. Termination
233 | --------------
234 |
235 | 5.1. The rights granted under this License will terminate automatically
236 | if You fail to comply with any of its terms. However, if You become
237 | compliant, then the rights granted under this License from a particular
238 | Contributor are reinstated (a) provisionally, unless and until such
239 | Contributor explicitly and finally terminates Your grants, and (b) on an
240 | ongoing basis, if such Contributor fails to notify You of the
241 | non-compliance by some reasonable means prior to 60 days after You have
242 | come back into compliance. Moreover, Your grants from a particular
243 | Contributor are reinstated on an ongoing basis if such Contributor
244 | notifies You of the non-compliance by some reasonable means, this is the
245 | first time You have received notice of non-compliance with this License
246 | from such Contributor, and You become compliant prior to 30 days after
247 | Your receipt of the notice.
248 |
249 | 5.2. If You initiate litigation against any entity by asserting a patent
250 | infringement claim (excluding declaratory judgment actions,
251 | counter-claims, and cross-claims) alleging that a Contributor Version
252 | directly or indirectly infringes any patent, then the rights granted to
253 | You by any and all Contributors for the Covered Software under Section
254 | 2.1 of this License shall terminate.
255 |
256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257 | end user license agreements (excluding distributors and resellers) which
258 | have been validly granted by You or Your distributors under this License
259 | prior to termination shall survive termination.
260 |
261 | ************************************************************************
262 | * *
263 | * 6. Disclaimer of Warranty *
264 | * ------------------------- *
265 | * *
266 | * Covered Software is provided under this License on an "as is" *
267 | * basis, without warranty of any kind, either expressed, implied, or *
268 | * statutory, including, without limitation, warranties that the *
269 | * Covered Software is free of defects, merchantable, fit for a *
270 | * particular purpose or non-infringing. The entire risk as to the *
271 | * quality and performance of the Covered Software is with You. *
272 | * Should any Covered Software prove defective in any respect, You *
273 | * (not any Contributor) assume the cost of any necessary servicing, *
274 | * repair, or correction. This disclaimer of warranty constitutes an *
275 | * essential part of this License. No use of any Covered Software is *
276 | * authorized under this License except under this disclaimer. *
277 | * *
278 | ************************************************************************
279 |
280 | ************************************************************************
281 | * *
282 | * 7. Limitation of Liability *
283 | * -------------------------- *
284 | * *
285 | * Under no circumstances and under no legal theory, whether tort *
286 | * (including negligence), contract, or otherwise, shall any *
287 | * Contributor, or anyone who distributes Covered Software as *
288 | * permitted above, be liable to You for any direct, indirect, *
289 | * special, incidental, or consequential damages of any character *
290 | * including, without limitation, damages for lost profits, loss of *
291 | * goodwill, work stoppage, computer failure or malfunction, or any *
292 | * and all other commercial damages or losses, even if such party *
293 | * shall have been informed of the possibility of such damages. This *
294 | * limitation of liability shall not apply to liability for death or *
295 | * personal injury resulting from such party's negligence to the *
296 | * extent applicable law prohibits such limitation. Some *
297 | * jurisdictions do not allow the exclusion or limitation of *
298 | * incidental or consequential damages, so this exclusion and *
299 | * limitation may not apply to You. *
300 | * *
301 | ************************************************************************
302 |
303 | 8. Litigation
304 | -------------
305 |
306 | Any litigation relating to this License may be brought only in the
307 | courts of a jurisdiction where the defendant maintains its principal
308 | place of business and such litigation shall be governed by laws of that
309 | jurisdiction, without reference to its conflict-of-law provisions.
310 | Nothing in this Section shall prevent a party's ability to bring
311 | cross-claims or counter-claims.
312 |
313 | 9. Miscellaneous
314 | ----------------
315 |
316 | This License represents the complete agreement concerning the subject
317 | matter hereof. If any provision of this License is held to be
318 | unenforceable, such provision shall be reformed only to the extent
319 | necessary to make it enforceable. Any law or regulation which provides
320 | that the language of a contract shall be construed against the drafter
321 | shall not be used to construe this License against a Contributor.
322 |
323 | 10. Versions of the License
324 | ---------------------------
325 |
326 | 10.1. New Versions
327 |
328 | Mozilla Foundation is the license steward. Except as provided in Section
329 | 10.3, no one other than the license steward has the right to modify or
330 | publish new versions of this License. Each version will be given a
331 | distinguishing version number.
332 |
333 | 10.2. Effect of New Versions
334 |
335 | You may distribute the Covered Software under the terms of the version
336 | of the License under which You originally received the Covered Software,
337 | or under the terms of any subsequent version published by the license
338 | steward.
339 |
340 | 10.3. Modified Versions
341 |
342 | If you create software not governed by this License, and you want to
343 | create a new license for such software, you may create and use a
344 | modified version of this License if you rename the license and remove
345 | any references to the name of the license steward (except to note that
346 | such modified license differs from this License).
347 |
348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary
349 | Licenses
350 |
351 | If You choose to distribute Source Code Form that is Incompatible With
352 | Secondary Licenses under the terms of this version of the License, the
353 | notice described in Exhibit B of this License must be attached.
354 |
355 | Exhibit A - Source Code Form License Notice
356 | -------------------------------------------
357 |
358 | This Source Code Form is subject to the terms of the Mozilla Public
359 | License, v. 2.0. If a copy of the MPL was not distributed with this
360 | file, You can obtain one at http://mozilla.org/MPL/2.0/.
361 |
362 | If it is not possible or desirable to put the notice in a particular
363 | file, then You may include the notice in a location (such as a LICENSE
364 | file in a relevant directory) where a recipient would be likely to look
365 | for such a notice.
366 |
367 | You may add additional accurate notices of copyright ownership.
368 |
369 | Exhibit B - "Incompatible With Secondary Licenses" Notice
370 | ---------------------------------------------------------
371 |
372 | This Source Code Form is "Incompatible With Secondary Licenses", as
373 | defined by the Mozilla Public License, v. 2.0.
374 |
--------------------------------------------------------------------------------
/PRIVACY.md:
--------------------------------------------------------------------------------
1 | # MailHops Privacy Policy
2 |
3 | MailHops parses IP addresses from the Received headers to send to the MailHops service. Please see the MailHops privacy policy for more details. [https://www.mailhops.com/privacy/](https://www.mailhops.com/privacy)
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MailHops Thunderbird Plugin
2 | [www.MailHops.com](https://www.mailhops.com)
3 |
4 |
5 |
6 | MailHops is an email route API. It does a few things:
7 |
8 | 1. Returns the route an email took based on the Received header IP addresses
9 | 1. Shows you a map an email took based on the Received header IP addresses
10 | 1. Shows the weather of the sender when you provide a [OpenWeatherMap](https://openweathermap.org/api) API key.
11 | 1. Will tag and mark messages as Junk if the travel time is too long.
12 | 1. Performs DNSBL check on messages.
13 | 1. Shows DKIM and SPF Authentication results.
14 |
15 | ### MailHops Message View
16 |
17 |
18 |
19 | ### MailHops Route Map
20 |
21 |
22 |
23 | ### MailHops Options
24 |
25 |
26 |
27 | ### MailHops Dashboard
28 |
29 |
30 |
31 | ### Editing the code
32 | 1. After you make changes you can run the [build.sh](build.sh) script
33 | 1. Open Postbox or Thunderbird and goto Tools->Add-ons and "Install Add-on From File..."
34 | 1. Choose mailhops.xpi from build script
35 |
36 | ```sh
37 | $ chmod +x build.sh
38 | $ ./build.sh
39 | ```
40 |
41 | ### MailHops API
42 | - [https://github.com/mailhops](https://github.com/mailhops)
43 |
44 | ### Download
45 | - [Download this plugin from Mozilla](https://addons.mozilla.org/en-US/thunderbird/addon/mailhops/)
46 |
--------------------------------------------------------------------------------
/_locales/de/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "MailHops Karten die Route eine E-Mail gereist, um bei Ihnen melden. Verwendung GeoIP es zeigt auch zurückgelegte Strecke zusammen mit dem Standort ( Ort, Bundesland und Land) des Absenders."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/en/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "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."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/es/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "Mapas MailHops la ruta un correo electrónico viajó a llegar a usted. Usando GeoIP también muestra la distancia recorrida junto con la ubicación ( ciudad, estado y país) del remitente."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/fr/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "MailHops vous permet de connaître la route empruntée par un mail avant qu'il ne parvienne dans votre messagerie. Grâce à MailHops vous pourrez : connaître le lieu d'émission du mail (pays, ville); visualiser le parcours du mail sur une carte (avec un grand choix de styles de carte); ou encore connaître des informations plus techniques (le user-agent et l'authentification utilisés par l'expéditeur) et d'autres informations plus amusantes comme la distance totale parcourue par le mail ou la météo actuelle sur le lieu d'émission. La version gratuite (sans clef API) permet d'obtenir ces informations et bien d'autres pour 100 messages par tranche de 24h."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/ja/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "MailHops 電子メールがあなたに取得するために旅したルートをマップします。のGeoIPを使用しても距離が送信者の場所(都市、州や国)と一緒に旅に表示されます。"
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/pl/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | } ,
5 | "appDesc": {
6 | "message": "Wskazuje trasę, którą e-mail dotarł do adresata. Korzystając z GeoIP, pokazuje także przybliżony dystans do nadawcy oraz jego położenie (miasto, region i państwo)."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/pt-BR/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | },
5 | "appDesc": {
6 | "message": "MailHops mapeia a rota um e-mail viajou para chegar até você . Usando GeoIP ele também exibe a distância percorrida , juntamente com a localização (cidade , estado e país ) do remetente."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/ru/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | } ,
5 | "appDesc": {
6 | "message": "MailHops отображает маршрутэлектронной почты , пройденное , чтобы добраться до вас. Использование GeoIP также отображает расстояние вместе с места (город, штат и страна ) отправителя."
7 | }
8 | }
--------------------------------------------------------------------------------
/_locales/zh-CN/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "appName": {
3 | "message": "MailHops"
4 | } ,
5 | "appDesc": {
6 | "message": "MailHops 映射電子郵件前往得到你的路線。使用GeoIP的它也顯示行駛距離隨著發送者的位置(城市,州和國家"
7 | }
8 | }
--------------------------------------------------------------------------------
/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | filename='mailhops'
4 |
5 | rm -f $filename.zip
6 |
7 | zip -r $filename.zip ./ -i '*.js' '*.xhtml' '*.html' '*.png' '*.svg' '*.gif' '*.css' '*.json' '*.dtd'
8 |
--------------------------------------------------------------------------------
/content/mailhops_details.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | MailHops
7 |
8 |
9 |
10 |
11 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/css/styles.css:
--------------------------------------------------------------------------------
1 | #mh-body {
2 | background-color: #FFF;
3 | }
4 |
5 | #mh-body.inverted {
6 | background-color: #121212;
7 | }
--------------------------------------------------------------------------------
/images/auth/bomb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/bomb.png
--------------------------------------------------------------------------------
/images/auth/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/error.png
--------------------------------------------------------------------------------
/images/auth/fail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/fail.png
--------------------------------------------------------------------------------
/images/auth/hardfail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/hardfail.png
--------------------------------------------------------------------------------
/images/auth/lock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/lock.png
--------------------------------------------------------------------------------
/images/auth/neutral.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/neutral.png
--------------------------------------------------------------------------------
/images/auth/none.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/none.png
--------------------------------------------------------------------------------
/images/auth/not_secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/not_secure.png
--------------------------------------------------------------------------------
/images/auth/pass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/pass.png
--------------------------------------------------------------------------------
/images/auth/permerror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/permerror.png
--------------------------------------------------------------------------------
/images/auth/secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/secure.png
--------------------------------------------------------------------------------
/images/auth/secure_host.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/secure_host.png
--------------------------------------------------------------------------------
/images/auth/softfail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/softfail.png
--------------------------------------------------------------------------------
/images/auth/temperror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/auth/temperror.png
--------------------------------------------------------------------------------
/images/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/email.png
--------------------------------------------------------------------------------
/images/flags/ad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ad.png
--------------------------------------------------------------------------------
/images/flags/ae.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ae.png
--------------------------------------------------------------------------------
/images/flags/af.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/af.png
--------------------------------------------------------------------------------
/images/flags/ag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ag.png
--------------------------------------------------------------------------------
/images/flags/ai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ai.png
--------------------------------------------------------------------------------
/images/flags/al.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/al.png
--------------------------------------------------------------------------------
/images/flags/am.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/am.png
--------------------------------------------------------------------------------
/images/flags/an.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/an.png
--------------------------------------------------------------------------------
/images/flags/ao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ao.png
--------------------------------------------------------------------------------
/images/flags/ar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ar.png
--------------------------------------------------------------------------------
/images/flags/as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/as.png
--------------------------------------------------------------------------------
/images/flags/at.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/at.png
--------------------------------------------------------------------------------
/images/flags/au.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/au.png
--------------------------------------------------------------------------------
/images/flags/aw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/aw.png
--------------------------------------------------------------------------------
/images/flags/ax.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ax.png
--------------------------------------------------------------------------------
/images/flags/az.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/az.png
--------------------------------------------------------------------------------
/images/flags/ba.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ba.png
--------------------------------------------------------------------------------
/images/flags/bb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bb.png
--------------------------------------------------------------------------------
/images/flags/bd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bd.png
--------------------------------------------------------------------------------
/images/flags/be.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/be.png
--------------------------------------------------------------------------------
/images/flags/bf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bf.png
--------------------------------------------------------------------------------
/images/flags/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bg.png
--------------------------------------------------------------------------------
/images/flags/bh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bh.png
--------------------------------------------------------------------------------
/images/flags/bi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bi.png
--------------------------------------------------------------------------------
/images/flags/bj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bj.png
--------------------------------------------------------------------------------
/images/flags/bm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bm.png
--------------------------------------------------------------------------------
/images/flags/bn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bn.png
--------------------------------------------------------------------------------
/images/flags/bo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bo.png
--------------------------------------------------------------------------------
/images/flags/br.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/br.png
--------------------------------------------------------------------------------
/images/flags/bs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bs.png
--------------------------------------------------------------------------------
/images/flags/bt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bt.png
--------------------------------------------------------------------------------
/images/flags/bv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bv.png
--------------------------------------------------------------------------------
/images/flags/bw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bw.png
--------------------------------------------------------------------------------
/images/flags/by.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/by.png
--------------------------------------------------------------------------------
/images/flags/bz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/bz.png
--------------------------------------------------------------------------------
/images/flags/ca.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ca.png
--------------------------------------------------------------------------------
/images/flags/catalonia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/catalonia.png
--------------------------------------------------------------------------------
/images/flags/cc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cc.png
--------------------------------------------------------------------------------
/images/flags/cd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cd.png
--------------------------------------------------------------------------------
/images/flags/cf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cf.png
--------------------------------------------------------------------------------
/images/flags/cg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cg.png
--------------------------------------------------------------------------------
/images/flags/ch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ch.png
--------------------------------------------------------------------------------
/images/flags/ci.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ci.png
--------------------------------------------------------------------------------
/images/flags/ck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ck.png
--------------------------------------------------------------------------------
/images/flags/cl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cl.png
--------------------------------------------------------------------------------
/images/flags/cm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cm.png
--------------------------------------------------------------------------------
/images/flags/cn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cn.png
--------------------------------------------------------------------------------
/images/flags/co.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/co.png
--------------------------------------------------------------------------------
/images/flags/cr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cr.png
--------------------------------------------------------------------------------
/images/flags/cs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cs.png
--------------------------------------------------------------------------------
/images/flags/cu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cu.png
--------------------------------------------------------------------------------
/images/flags/cv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cv.png
--------------------------------------------------------------------------------
/images/flags/cx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cx.png
--------------------------------------------------------------------------------
/images/flags/cy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cy.png
--------------------------------------------------------------------------------
/images/flags/cz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/cz.png
--------------------------------------------------------------------------------
/images/flags/de.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/de.png
--------------------------------------------------------------------------------
/images/flags/dj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/dj.png
--------------------------------------------------------------------------------
/images/flags/dk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/dk.png
--------------------------------------------------------------------------------
/images/flags/dm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/dm.png
--------------------------------------------------------------------------------
/images/flags/do.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/do.png
--------------------------------------------------------------------------------
/images/flags/dz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/dz.png
--------------------------------------------------------------------------------
/images/flags/ec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ec.png
--------------------------------------------------------------------------------
/images/flags/ee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ee.png
--------------------------------------------------------------------------------
/images/flags/eg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/eg.png
--------------------------------------------------------------------------------
/images/flags/eh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/eh.png
--------------------------------------------------------------------------------
/images/flags/england.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/england.png
--------------------------------------------------------------------------------
/images/flags/er.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/er.png
--------------------------------------------------------------------------------
/images/flags/es.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/es.png
--------------------------------------------------------------------------------
/images/flags/et.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/et.png
--------------------------------------------------------------------------------
/images/flags/europeanunion.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/europeanunion.png
--------------------------------------------------------------------------------
/images/flags/fam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fam.png
--------------------------------------------------------------------------------
/images/flags/fi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fi.png
--------------------------------------------------------------------------------
/images/flags/fj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fj.png
--------------------------------------------------------------------------------
/images/flags/fk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fk.png
--------------------------------------------------------------------------------
/images/flags/fm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fm.png
--------------------------------------------------------------------------------
/images/flags/fo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fo.png
--------------------------------------------------------------------------------
/images/flags/fr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/fr.png
--------------------------------------------------------------------------------
/images/flags/ga.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ga.png
--------------------------------------------------------------------------------
/images/flags/gb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gb.png
--------------------------------------------------------------------------------
/images/flags/gd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gd.png
--------------------------------------------------------------------------------
/images/flags/ge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ge.png
--------------------------------------------------------------------------------
/images/flags/gf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gf.png
--------------------------------------------------------------------------------
/images/flags/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gh.png
--------------------------------------------------------------------------------
/images/flags/gi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gi.png
--------------------------------------------------------------------------------
/images/flags/gl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gl.png
--------------------------------------------------------------------------------
/images/flags/gm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gm.png
--------------------------------------------------------------------------------
/images/flags/gn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gn.png
--------------------------------------------------------------------------------
/images/flags/gp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gp.png
--------------------------------------------------------------------------------
/images/flags/gq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gq.png
--------------------------------------------------------------------------------
/images/flags/gr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gr.png
--------------------------------------------------------------------------------
/images/flags/gs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gs.png
--------------------------------------------------------------------------------
/images/flags/gt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gt.png
--------------------------------------------------------------------------------
/images/flags/gu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gu.png
--------------------------------------------------------------------------------
/images/flags/gw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gw.png
--------------------------------------------------------------------------------
/images/flags/gy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/gy.png
--------------------------------------------------------------------------------
/images/flags/hk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/hk.png
--------------------------------------------------------------------------------
/images/flags/hm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/hm.png
--------------------------------------------------------------------------------
/images/flags/hn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/hn.png
--------------------------------------------------------------------------------
/images/flags/hr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/hr.png
--------------------------------------------------------------------------------
/images/flags/ht.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ht.png
--------------------------------------------------------------------------------
/images/flags/hu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/hu.png
--------------------------------------------------------------------------------
/images/flags/id.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/id.png
--------------------------------------------------------------------------------
/images/flags/ie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ie.png
--------------------------------------------------------------------------------
/images/flags/il.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/il.png
--------------------------------------------------------------------------------
/images/flags/in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/in.png
--------------------------------------------------------------------------------
/images/flags/io.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/io.png
--------------------------------------------------------------------------------
/images/flags/iq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/iq.png
--------------------------------------------------------------------------------
/images/flags/ir.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ir.png
--------------------------------------------------------------------------------
/images/flags/is.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/is.png
--------------------------------------------------------------------------------
/images/flags/it.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/it.png
--------------------------------------------------------------------------------
/images/flags/jm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/jm.png
--------------------------------------------------------------------------------
/images/flags/jo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/jo.png
--------------------------------------------------------------------------------
/images/flags/jp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/jp.png
--------------------------------------------------------------------------------
/images/flags/ke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ke.png
--------------------------------------------------------------------------------
/images/flags/kg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kg.png
--------------------------------------------------------------------------------
/images/flags/kh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kh.png
--------------------------------------------------------------------------------
/images/flags/ki.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ki.png
--------------------------------------------------------------------------------
/images/flags/km.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/km.png
--------------------------------------------------------------------------------
/images/flags/kn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kn.png
--------------------------------------------------------------------------------
/images/flags/kp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kp.png
--------------------------------------------------------------------------------
/images/flags/kr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kr.png
--------------------------------------------------------------------------------
/images/flags/kw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kw.png
--------------------------------------------------------------------------------
/images/flags/ky.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ky.png
--------------------------------------------------------------------------------
/images/flags/kz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/kz.png
--------------------------------------------------------------------------------
/images/flags/la.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/la.png
--------------------------------------------------------------------------------
/images/flags/lb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lb.png
--------------------------------------------------------------------------------
/images/flags/lc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lc.png
--------------------------------------------------------------------------------
/images/flags/li.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/li.png
--------------------------------------------------------------------------------
/images/flags/lk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lk.png
--------------------------------------------------------------------------------
/images/flags/lr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lr.png
--------------------------------------------------------------------------------
/images/flags/ls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ls.png
--------------------------------------------------------------------------------
/images/flags/lt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lt.png
--------------------------------------------------------------------------------
/images/flags/lu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lu.png
--------------------------------------------------------------------------------
/images/flags/lv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/lv.png
--------------------------------------------------------------------------------
/images/flags/ly.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ly.png
--------------------------------------------------------------------------------
/images/flags/ma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ma.png
--------------------------------------------------------------------------------
/images/flags/mc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mc.png
--------------------------------------------------------------------------------
/images/flags/md.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/md.png
--------------------------------------------------------------------------------
/images/flags/me.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/me.png
--------------------------------------------------------------------------------
/images/flags/mg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mg.png
--------------------------------------------------------------------------------
/images/flags/mh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mh.png
--------------------------------------------------------------------------------
/images/flags/mk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mk.png
--------------------------------------------------------------------------------
/images/flags/ml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ml.png
--------------------------------------------------------------------------------
/images/flags/mm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mm.png
--------------------------------------------------------------------------------
/images/flags/mn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mn.png
--------------------------------------------------------------------------------
/images/flags/mo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mo.png
--------------------------------------------------------------------------------
/images/flags/mp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mp.png
--------------------------------------------------------------------------------
/images/flags/mq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mq.png
--------------------------------------------------------------------------------
/images/flags/mr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mr.png
--------------------------------------------------------------------------------
/images/flags/ms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ms.png
--------------------------------------------------------------------------------
/images/flags/mt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mt.png
--------------------------------------------------------------------------------
/images/flags/mu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mu.png
--------------------------------------------------------------------------------
/images/flags/mv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mv.png
--------------------------------------------------------------------------------
/images/flags/mw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mw.png
--------------------------------------------------------------------------------
/images/flags/mx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mx.png
--------------------------------------------------------------------------------
/images/flags/my.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/my.png
--------------------------------------------------------------------------------
/images/flags/mz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/mz.png
--------------------------------------------------------------------------------
/images/flags/na.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/na.png
--------------------------------------------------------------------------------
/images/flags/nc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nc.png
--------------------------------------------------------------------------------
/images/flags/ne.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ne.png
--------------------------------------------------------------------------------
/images/flags/nf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nf.png
--------------------------------------------------------------------------------
/images/flags/ng.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ng.png
--------------------------------------------------------------------------------
/images/flags/ni.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ni.png
--------------------------------------------------------------------------------
/images/flags/nl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nl.png
--------------------------------------------------------------------------------
/images/flags/no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/no.png
--------------------------------------------------------------------------------
/images/flags/np.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/np.png
--------------------------------------------------------------------------------
/images/flags/nr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nr.png
--------------------------------------------------------------------------------
/images/flags/nu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nu.png
--------------------------------------------------------------------------------
/images/flags/nz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/nz.png
--------------------------------------------------------------------------------
/images/flags/om.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/om.png
--------------------------------------------------------------------------------
/images/flags/pa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pa.png
--------------------------------------------------------------------------------
/images/flags/pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pe.png
--------------------------------------------------------------------------------
/images/flags/pf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pf.png
--------------------------------------------------------------------------------
/images/flags/pg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pg.png
--------------------------------------------------------------------------------
/images/flags/ph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ph.png
--------------------------------------------------------------------------------
/images/flags/pk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pk.png
--------------------------------------------------------------------------------
/images/flags/pl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pl.png
--------------------------------------------------------------------------------
/images/flags/pm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pm.png
--------------------------------------------------------------------------------
/images/flags/pn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pn.png
--------------------------------------------------------------------------------
/images/flags/pr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pr.png
--------------------------------------------------------------------------------
/images/flags/ps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ps.png
--------------------------------------------------------------------------------
/images/flags/pt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pt.png
--------------------------------------------------------------------------------
/images/flags/pw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/pw.png
--------------------------------------------------------------------------------
/images/flags/py.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/py.png
--------------------------------------------------------------------------------
/images/flags/qa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/qa.png
--------------------------------------------------------------------------------
/images/flags/re.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/re.png
--------------------------------------------------------------------------------
/images/flags/ro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ro.png
--------------------------------------------------------------------------------
/images/flags/rs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/rs.png
--------------------------------------------------------------------------------
/images/flags/ru.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ru.png
--------------------------------------------------------------------------------
/images/flags/rw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/rw.png
--------------------------------------------------------------------------------
/images/flags/sa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sa.png
--------------------------------------------------------------------------------
/images/flags/sb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sb.png
--------------------------------------------------------------------------------
/images/flags/sc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sc.png
--------------------------------------------------------------------------------
/images/flags/scotland.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/scotland.png
--------------------------------------------------------------------------------
/images/flags/sd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sd.png
--------------------------------------------------------------------------------
/images/flags/se.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/se.png
--------------------------------------------------------------------------------
/images/flags/sg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sg.png
--------------------------------------------------------------------------------
/images/flags/sh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sh.png
--------------------------------------------------------------------------------
/images/flags/si.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/si.png
--------------------------------------------------------------------------------
/images/flags/sj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sj.png
--------------------------------------------------------------------------------
/images/flags/sk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sk.png
--------------------------------------------------------------------------------
/images/flags/sl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sl.png
--------------------------------------------------------------------------------
/images/flags/sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sm.png
--------------------------------------------------------------------------------
/images/flags/sn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sn.png
--------------------------------------------------------------------------------
/images/flags/so.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/so.png
--------------------------------------------------------------------------------
/images/flags/sr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sr.png
--------------------------------------------------------------------------------
/images/flags/st.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/st.png
--------------------------------------------------------------------------------
/images/flags/sv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sv.png
--------------------------------------------------------------------------------
/images/flags/sy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sy.png
--------------------------------------------------------------------------------
/images/flags/sz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/sz.png
--------------------------------------------------------------------------------
/images/flags/tc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tc.png
--------------------------------------------------------------------------------
/images/flags/td.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/td.png
--------------------------------------------------------------------------------
/images/flags/tf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tf.png
--------------------------------------------------------------------------------
/images/flags/tg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tg.png
--------------------------------------------------------------------------------
/images/flags/th.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/th.png
--------------------------------------------------------------------------------
/images/flags/tj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tj.png
--------------------------------------------------------------------------------
/images/flags/tk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tk.png
--------------------------------------------------------------------------------
/images/flags/tl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tl.png
--------------------------------------------------------------------------------
/images/flags/tm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tm.png
--------------------------------------------------------------------------------
/images/flags/tn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tn.png
--------------------------------------------------------------------------------
/images/flags/to.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/to.png
--------------------------------------------------------------------------------
/images/flags/tr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tr.png
--------------------------------------------------------------------------------
/images/flags/tt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tt.png
--------------------------------------------------------------------------------
/images/flags/tv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tv.png
--------------------------------------------------------------------------------
/images/flags/tw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tw.png
--------------------------------------------------------------------------------
/images/flags/tz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/tz.png
--------------------------------------------------------------------------------
/images/flags/ua.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ua.png
--------------------------------------------------------------------------------
/images/flags/ug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ug.png
--------------------------------------------------------------------------------
/images/flags/um.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/um.png
--------------------------------------------------------------------------------
/images/flags/us.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/us.png
--------------------------------------------------------------------------------
/images/flags/uy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/uy.png
--------------------------------------------------------------------------------
/images/flags/uz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/uz.png
--------------------------------------------------------------------------------
/images/flags/va.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/va.png
--------------------------------------------------------------------------------
/images/flags/vc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/vc.png
--------------------------------------------------------------------------------
/images/flags/ve.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ve.png
--------------------------------------------------------------------------------
/images/flags/vg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/vg.png
--------------------------------------------------------------------------------
/images/flags/vi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/vi.png
--------------------------------------------------------------------------------
/images/flags/vn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/vn.png
--------------------------------------------------------------------------------
/images/flags/vu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/vu.png
--------------------------------------------------------------------------------
/images/flags/wales.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/wales.png
--------------------------------------------------------------------------------
/images/flags/wf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/wf.png
--------------------------------------------------------------------------------
/images/flags/ws.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ws.png
--------------------------------------------------------------------------------
/images/flags/ye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/ye.png
--------------------------------------------------------------------------------
/images/flags/yt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/yt.png
--------------------------------------------------------------------------------
/images/flags/za.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/za.png
--------------------------------------------------------------------------------
/images/flags/zm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/zm.png
--------------------------------------------------------------------------------
/images/flags/zw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/flags/zw.png
--------------------------------------------------------------------------------
/images/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/help.png
--------------------------------------------------------------------------------
/images/hop.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | image/svg+xml
--------------------------------------------------------------------------------
/images/host.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/host.png
--------------------------------------------------------------------------------
/images/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/info.png
--------------------------------------------------------------------------------
/images/ipv6.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
13 |
29 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/images/loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/loader.gif
--------------------------------------------------------------------------------
/images/local.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/local.png
--------------------------------------------------------------------------------
/images/mailhops-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/mailhops-logo.png
--------------------------------------------------------------------------------
/images/mailhops-logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | image/svg+xml
--------------------------------------------------------------------------------
/images/mailhops16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/mailhops16.png
--------------------------------------------------------------------------------
/images/mailhops24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/mailhops24.png
--------------------------------------------------------------------------------
/images/mailhops32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/mailhops32.png
--------------------------------------------------------------------------------
/images/openweathermap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/openweathermap.png
--------------------------------------------------------------------------------
/images/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/refresh.png
--------------------------------------------------------------------------------
/images/screenshot-dashboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-dashboard.png
--------------------------------------------------------------------------------
/images/screenshot-display.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-display.png
--------------------------------------------------------------------------------
/images/screenshot-map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-map.png
--------------------------------------------------------------------------------
/images/screenshot-notificationbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-notificationbar.png
--------------------------------------------------------------------------------
/images/screenshot-notificationbar2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-notificationbar2.png
--------------------------------------------------------------------------------
/images/screenshot-tb78-preferences.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-tb78-preferences.png
--------------------------------------------------------------------------------
/images/screenshot-tb78-view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/screenshot-tb78-view.png
--------------------------------------------------------------------------------
/images/w3w.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/w3w.png
--------------------------------------------------------------------------------
/images/weather/clear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/clear.png
--------------------------------------------------------------------------------
/images/weather/clear_night.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/clear_night.png
--------------------------------------------------------------------------------
/images/weather/clouds.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/clouds.png
--------------------------------------------------------------------------------
/images/weather/cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/cloudy.png
--------------------------------------------------------------------------------
/images/weather/cloudy_night.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/cloudy_night.png
--------------------------------------------------------------------------------
/images/weather/lightning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/lightning.png
--------------------------------------------------------------------------------
/images/weather/rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/rain.png
--------------------------------------------------------------------------------
/images/weather/snow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/snow.png
--------------------------------------------------------------------------------
/images/weather/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailHops/mailhops-plugin/151c08bb88f50cbae3d6b3f2623ee3475f8e9c01/images/weather/sun.png
--------------------------------------------------------------------------------
/js/bootstrap.js:
--------------------------------------------------------------------------------
1 | // messenger.messages.onNewMailReceived.addListener((folder, messageList) => {
2 | // if(messageList.messages.length){
3 | // for (var m = 0; m < messageList.messages.length; m++){
4 | // browser.messages.getFull(messageList.messages[m].id).then((messagePart) => {
5 | // MailHops.getRoute(messageList.messages[m].id, messagePart.headers);
6 | // });
7 | // }
8 | // }
9 | // });
10 |
11 | // Keep track of MailHops instances per tab.
12 | let tabHops = new Map();
13 |
14 | browser.messageDisplayAction.onClicked.addListener((tab) => {
15 | let mailHop = tabHops.get(tab.id);
16 | if (mailHop.isLoaded) {
17 | browser.messageDisplayAction.setPopup({
18 | tabId: tab.id,
19 | popup: `content/mailhops_details.xhtml?tabId=${tab.id}`
20 | });
21 | browser.messageDisplayAction.openPopup();
22 | }
23 | });
24 |
25 | async function initMessageTab(tab, message) {
26 | let mailHop = new MailHops();
27 | let messagePart = await messenger.messages.getFull(message.id);
28 | await mailHop.init(tab.id, message.id, messagePart.headers);
29 | tabHops.set(tab.id, mailHop);
30 | }
31 | messenger.messageDisplay.onMessageDisplayed.addListener(initMessageTab);
32 |
33 | var port;
34 | function connected(p) {
35 | port = p;
36 | port.onMessage.addListener(function (m) {
37 | switch (m.command) {
38 | case 'details':
39 | let mailHop = tabHops.get(m.tabId);
40 | port.postMessage({
41 | "cmd": m.command,
42 | "message": mailHop.message,
43 | "response": mailHop.response,
44 | "options": mailHop.options
45 | });
46 | break;
47 | }
48 | });
49 | }
50 | browser.runtime.onConnect.addListener(connected);
51 |
52 |
53 | // Update all messages currently displayed.
54 | async function updateAllCurrentMessages() {
55 | let tabs = await browser.tabs.query({})
56 | let messageTabs = tabs.filter(tab => ["mail", "messageDisplay"].includes(tab.type));
57 | for (let messageTab of messageTabs) {
58 | let message = await browser.messageDisplay.getDisplayedMessage(messageTab.id);
59 | if (message) {
60 | await initMessageTab(messageTab, message);
61 | }
62 | }
63 | }
64 | updateAllCurrentMessages();
65 |
--------------------------------------------------------------------------------
/js/mailhops.js:
--------------------------------------------------------------------------------
1 | /*
2 | * @author: Andrew Van Tassel
3 | * @email: andrew@andrewvantassel.com
4 | * @website: http://Mailhops.com
5 | */
6 |
7 | class MailHops {
8 | msgURI = null
9 | isLoaded = false
10 | loading = false
11 | tabId = null
12 | options = {
13 | version: 'MailHops Plugin 4.5.0',
14 | api_key: '',
15 | owm_key: '',
16 | lang: 'en',
17 | unit: 'mi',
18 | theme: 'light',
19 | api_http: 'https://',
20 | api_host: 'api.Mailhops.com',
21 | travel_time_junk: false,
22 | extrainfo: false,
23 | debug: false,
24 | country_filter: []
25 | }
26 | message = {
27 | id: null
28 | , map_url: ''
29 | , time: null
30 | , date: new Date().toISOString()
31 | , hash: ''
32 | , secure: []
33 | , headers: []
34 | , auth: []
35 | , sender: {
36 | icon: '/images/refresh.png'
37 | , title: 'Loading...'
38 | , description: ''
39 | },
40 | error: ''
41 | }
42 | response = {}
43 |
44 | LOG(msg) {
45 | if (!this.options.debug)
46 | return;
47 | console.log(msg);
48 | }
49 |
50 | async init(tabId, id, headers) {
51 | this.tabId = tabId;
52 | try {
53 | var data = await browser.storage.local.get();
54 | if (data.api_key) {
55 | this.options.api_key = data.api_key;
56 | }
57 | if (data.owm_key) {
58 | this.options.owm_key = data.owm_key;
59 | }
60 | if (data.lang) {
61 | this.options.lang = data.lang;
62 | }
63 | if (data.unit) {
64 | this.options.unit = data.unit;
65 | }
66 | if (data.theme) {
67 | this.options.theme = data.theme;
68 | }
69 | if (data.travel_time_junk && data.travel_time_junk != 'off') {
70 | this.options.travel_time_junk = Boolean(data.travel_time_junk);
71 | }
72 | if (data.extrainfo) {
73 | this.options.extrainfo = Boolean(data.extrainfo);
74 | }
75 | if (data.debug) {
76 | this.options.debug = Boolean(data.debug);
77 | }
78 | if (data.countries) {
79 | this.options.country_filter = data.countries.split(',');
80 | }
81 | this.LOG('load MailHops prefs');
82 | // reset message
83 | this.message = {
84 | id: id
85 | , map_url: ''
86 | , time: null
87 | , date: new Date().toISOString()
88 | , hash: ''
89 | , secure: []
90 | , headers: headers
91 | , auth: []
92 | , sender: {
93 | icon: '/images/refresh.png'
94 | , title: 'Loading...'
95 | , description: ''
96 | },
97 | error: ''
98 | };
99 | this.getRoute();
100 | } catch (e) {
101 | this.LOG('Error loading MailHops prefs');
102 | }
103 | }
104 |
105 | async getRoute() {
106 | if (this.loading) return;
107 |
108 | this.loading = true;
109 | // set loading icon
110 | browser.messageDisplayAction.setPopup({ popup: '', tabId: this.tabId });
111 | browser.messageDisplayAction.setIcon({ path: '/images/refresh.png', tabId: this.tabId });
112 | browser.messageDisplayAction.setTitle({ title: 'Loading...', tabId: this.tabId });
113 |
114 | //IP regex
115 | var regexIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
116 | var regexAllIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
117 | var regexIPV6 = /s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*/g;
118 |
119 | var headReceived = this.message.headers['received'] || [];
120 | var headDate = this.message.headers['date'] ? this.message.headers['date'][0] : '';
121 | var headXReceived = this.message.headers['x-received'] ? this.message.headers['x-received'][0] : '';
122 | var headXOrigIP = this.message.headers['x-originating-ip'] ? this.message.headers['x-originating-ip'][0] : '';
123 | // auth box
124 | var headXMailer = this.message.headers['x-mailer'] ? this.message.headers['x-mailer'][0] : '';
125 | var headUserAgent = this.message.headers['user-agent'] ? this.message.headers['user-agent'][0] : '';
126 | var headXMimeOLE = this.message.headers['x-mimeole'] ? this.message.headers['x-mimeole'][0] : '';
127 | var headReceivedSPF = this.message.headers['received-spf'] ? this.message.headers['received-spf'][0] : '';
128 | var headAuth = this.message.headers['authentication-results'] ? this.message.headers['authentication-results'][0] : '';
129 | var headListUnsubscribe = this.message.headers['list-unsubscribe'] ? this.message.headers['list-unsubscribe'][0] : '';
130 |
131 | var all_ips = new Array();
132 | var rline = '';
133 | var firstDate = headDate;
134 | var lastDate;
135 | //empty secure and time
136 | this.message.secure = [];
137 | this.message.time = null;
138 | try {
139 | this.message.date = new Date(headDate).toISOString();
140 | } catch (error) {
141 | headDate = headDate.substring(0, headDate.lastIndexOf(' '));
142 | }
143 | try {
144 | this.message.date = new Date(headDate).toISOString();
145 | } catch (error) {
146 | headDate = new Date();
147 | }
148 |
149 | this.message.auth = this.auth(headXMailer, headUserAgent, headXMimeOLE, headAuth, headReceivedSPF, headListUnsubscribe);
150 |
151 | //loop through the received headers and parse for IP addresses
152 | if (Boolean(headReceived)) {
153 | var received_ips = new Array();
154 | for (var h = 0; h < headReceived.length; h++) {
155 | //build the received line by concat until semi-colon ; date/time
156 | rline += headReceived[h];
157 | if (headReceived[h].indexOf(';') === -1)
158 | continue;
159 | // first and last dates are used to calculate time traveled
160 | if (rline.indexOf(';') !== -1) {
161 | if (!firstDate)
162 | firstDate = rline.substring(rline.indexOf(';') + 1).trim();
163 | if (!lastDate)
164 | lastDate = rline.substring(rline.indexOf(';') + 1).trim();
165 | }
166 |
167 | // IPV6 check
168 | rline = rline.replace(/\[IPv6\:/g, '[');
169 | if (rline.match(regexIPV6)) {
170 | all_ips.unshift(rline.match(regexIPV6)[0]);
171 | //reset the line
172 | rline = '';
173 | continue;
174 | }
175 | // parse IPs out of Received line
176 | received_ips = rline.match(regexAllIp);
177 | //continue if no IPs found
178 | if (!received_ips) {
179 | //reset the line
180 | rline = '';
181 | continue;
182 | }
183 | //get unique IPs for each Received header
184 | received_ips = received_ips.filter(function (item, pos) {
185 | return received_ips.indexOf(item) === pos;
186 | });
187 | for (var r = received_ips.length; r >= 0; r--) {
188 | if (regexIp.test(received_ips[r]) && this.testIP(received_ips[r], rline)) {
189 | all_ips.unshift(received_ips[r]);
190 | }
191 | }
192 | //reset the line
193 | rline = '';
194 | }
195 | }
196 |
197 | // parse dates
198 | if (firstDate && firstDate.indexOf('(') !== - 1)
199 | firstDate = firstDate.substring(0, firstDate.indexOf('(')).trim();
200 | if (lastDate && lastDate.indexOf('(') !== -1)
201 | lastDate = lastDate.substring(0, lastDate.indexOf('(')).trim();
202 | if (firstDate && lastDate) {
203 | try {
204 | firstDate = new Date(firstDate);
205 | lastDate = new Date(lastDate);
206 | this.message.time = lastDate - firstDate;
207 | } catch (e) {
208 | this.LOG('travel dates parse Error: ' + JSON.stringify(e));
209 | this.message.time = null;
210 | }
211 | } else {
212 | this.message.time = null;
213 | }
214 |
215 | //get the originating IP address
216 | if (Boolean(headXOrigIP)) {
217 | headXOrigIP = headXOrigIP.replace(/\[IPv6\:/g, '[');
218 | //IPV6 check
219 | if (headXOrigIP.match(regexIPV6)) {
220 | var ip = headXOrigIP.match(regexIPV6)
221 | if (Boolean(ip) && ip.length && all_ips.indexOf(ip[0]) == -1)
222 | all_ips.unshift(ip[0]);
223 | } else {
224 | var ip = headXOrigIP.match(regexAllIp);
225 | if (Boolean(ip) && ip.length && all_ips.indexOf(ip[0]) == -1)
226 | all_ips.unshift(ip[0]);
227 | }
228 | }
229 | if (all_ips.length) {
230 | // set the message hash
231 | this.message.hash = btoa(this.message.date + '' + all_ips.join(','));
232 | const cached = await this.getCacheResponse();
233 | if (cached) {
234 | this.displayRoute(cached);
235 | this.isLoaded = true;
236 | this.loading = false;
237 | } else {
238 | this.lookupRoute(all_ips.join(','));
239 | }
240 | } else {
241 | this.clear();
242 | }
243 | };
244 |
245 | //another ip check, dates will throw off the regex
246 | testIP(ip, header) {
247 | var validIP = true;
248 |
249 | try {
250 | var firstchar = header.substring(header.indexOf(ip) - 1);
251 | firstchar = firstchar.substring(0, 1);
252 | var lastchar = header.substring((header.indexOf(ip) + ip.length));
253 | lastchar = lastchar.substring(0, 1);
254 |
255 | if (firstchar.match(/\.|\d|\-/)
256 | || lastchar.match(/\.|\d|\-/)
257 | || (firstchar == '?' && lastchar == '?')
258 | || (firstchar == ':' || lastchar == ':')
259 | || lastchar == ';'
260 | || header.toLowerCase().indexOf(' id ' + ip) !== -1
261 | || parseInt(ip.substring(0, ip.indexOf('.'))) >= 240 //IANA-RESERVED
262 | ) {
263 | //only if there is one instance of this IP
264 | if (header.indexOf(ip) == header.lastIndexOf(ip))
265 | validIP = false;
266 | } else if (header.indexOf('using SSL') !== -1
267 | || header.indexOf('using TLS') !== -1
268 | || header.indexOf('version=TLSv1/SSLv3') !== -1
269 | ) {
270 | //check if this IP was part of a secure transmission
271 | this.message.secure.push(ip);
272 | }
273 | } catch (e) {
274 | this.LOG('testIP Error: ' + JSON.stringify(e));
275 | }
276 | return validIP;
277 | }
278 |
279 | clear() {
280 | this.message.sender = {
281 | title: 'Local',
282 | countryCode: '',
283 | icon: '/images/local.png'
284 | };
285 | browser.messageDisplayAction.setIcon({ path: this.message.sender.icon, tabId: this.tabId });
286 | browser.messageDisplayAction.setTitle({ title: this.message.sender.title, tabId: this.tabId });
287 | this.isLoaded = true;
288 | this.loading = false;
289 | }
290 |
291 | error(status, data) {
292 | this.message.error = (data && data.error && data.error.message) ? data && data.error.message : 'Service Unavailable';
293 | this.message.sender = {
294 | title: (data && data.error && data.error.message) ? data && data.error.message : 'Service Unavailable',
295 | countryCode: '',
296 | icon: '/images/auth/error.png'
297 | };
298 | browser.messageDisplayAction.setIcon({ path: this.message.sender.icon, tabId: this.tabId });
299 | browser.messageDisplayAction.setTitle({ title: this.message.sender.title, tabId: this.tabId });
300 | }
301 |
302 | extractMaybeQuotedValue(line, key) {
303 | let ret = [ ];
304 | let new_line = line;
305 |
306 | console.assert (key.length);
307 |
308 | // The possible combinations we might be interested in.
309 | let dQuote = new RegExp (key + '="(.*?)"');
310 | let sQuote = new RegExp (key + "='(.*?)'");
311 | let nQuote = new RegExp (key + '=(.*?)(?:\\s|$)');
312 |
313 | let match = line.match (dQuote);
314 | if (null !== match) {
315 | ret.push (match[1]);
316 | }
317 |
318 | if (!ret.length) {
319 | match = line.match (sQuote);
320 | if (null !== match) {
321 | ret.push (match[1]);
322 | }
323 | }
324 |
325 | if (!ret.length) {
326 | match = line.match (nQuote);
327 | if (null !== match) {
328 | ret.push (match[1]);
329 | }
330 | }
331 |
332 | if (ret.length) {
333 | // Match length must be non-zero.
334 | console.assert (match[0].length);
335 |
336 | // Drop data leading up to the match.
337 | new_line = new_line.substring (match.index);
338 |
339 | // Drop the match itself.
340 | new_line = new_line.substring (match[0].length);
341 |
342 | // Add to return value.
343 | ret.push (new_line);
344 | }
345 |
346 | return ret;
347 | }
348 |
349 | sanitizeString(str) {
350 | return str.replace (/\t/g, ' ').replace (/\s+/g, ' ').replace (//g, '>').trim ();
351 | }
352 |
353 | auth(header_xmailer, header_useragent, header_xmimeole, header_auth, header_spf, header_unsubscribe) {
354 | let auth = [];
355 | var color = 'green';
356 | //SPF
357 | if (header_spf) {
358 | // Compact whitespace, make sure addresses enclosed in <> parse as valid
359 | // XHTMl later on.
360 | header_spf = this.sanitizeString (header_spf);
361 | }
362 | //Authentication-Results
363 | //http://tools.ietf.org/html/rfc8601
364 | if (header_auth) {
365 | this.LOG ('Authentication-Results header found, parsing...\n');
366 | var headerAuthArr = [];
367 |
368 | // The header might contain multiple lines, so iterate above them.
369 | var headerAuthArr = header_auth.split('\n');
370 | var dkimState = '';
371 | var spfState = '';
372 | var dkimReason = '';
373 | var spfReason = '';
374 | var dkimAux = '';
375 | var spfAux = '';
376 | var gotDkimState = false;
377 | var gotSpfState = false;
378 | for (var i = 0; i < headerAuthArr.length; ++i) {
379 | var curLine = headerAuthArr[i];
380 | this.LOG ('current header line: ' + curLine + '\n');
381 |
382 | // This is the actual fun part.
383 | // The AH can very funky and naïve field splitting often leads to
384 | // wrong results.
385 | // We'll heave to tread carefully and parse data in a more
386 | // sophisticated way, relying on arcane knowledge.
387 | //
388 | // It might be temping to try to merge the dkim and spf sections below,
389 | // but doing so is not really possible, since the formats are
390 | // different.
391 | let statePos = 0;
392 | let stateWork = curLine;
393 | while ((!gotDkimState) &&
394 | (-1 !== (statePos = stateWork.indexOf ('dkim=')))) {
395 | // Fetch "dkim=" value, potentially quoted.
396 | // While the RFC doesn't mention anything about quote-enclosing
397 | // values, it probably doesn't hurt to support it.
398 | let extract = this.extractMaybeQuotedValue (stateWork, 'dkim');
399 |
400 | if (extract.length) {
401 | dkimState = extract[0];
402 | stateWork = extract[1];
403 | gotDkimState = true;
404 | this.LOG ("extracted DKIM state: " + dkimState + "; continuing with new line: " + stateWork);
405 | }
406 | else {
407 | // Nothing found on this line, continue.
408 | this.LOG ("nothing found on current line (leftover) '" + truncatedWork + "', continuing...");
409 | continue;
410 | }
411 |
412 | // Look ahead to find the next "dkim=" section. This will mark the
413 | // end of our current chunk (if it exists).
414 | let stateEnd = -1;
415 | let truncatedWork = stateWork;
416 | if (-1 !== (stateEnd = stateWork.indexOf ('dkim=', 5))) {
417 | truncatedWork = truncatedWork.substring (0, stateEnd);
418 | }
419 |
420 | // Now fetch additional data.
421 | // Typically, that should be "reason=".
422 | extract = this.extractMaybeQuotedValue (truncatedWork, 'reason');
423 |
424 | if (extract.length) {
425 | dkimReason = extract[0];
426 | truncatedWork = extract[1];
427 | this.LOG ("extracted DKIM reason: " + dkimReason + "; continuing with new line: " + truncatedWork);
428 | }
429 |
430 | // Same MTA append a string such as "(1024-bit key; unprotected)",
431 | // add this to the reason.
432 | const key_data = new RegExp ('\\(\\d+-bit key(?:; .+?)?\\)');
433 | let match = truncatedWork.match (key_data);
434 | if (null !== match) {
435 | if (dkimReason.length) {
436 | dkimReason += ' ';
437 | }
438 | dkimReason += match[0];
439 | truncatedWork = truncatedWork.substring (match.index);
440 | truncatedWork = truncatedWork.substring (match[0].length);
441 | }
442 |
443 | // Others enclose the reason in parentheses.
444 | const paren_reason = new RegExp ('\\(.+?\\)');
445 | match = truncatedWork.match (paren_reason);
446 | if (null !== match) {
447 | if (dkimReason.length) {
448 | dkimReason += ' ';
449 | }
450 | dkimReason += match[0];
451 | truncatedWork = truncatedWork.substring (match.index);
452 | truncatedWork = truncatedWork.substring (match[0].length);
453 | }
454 |
455 | // Everything else should be additional data, up until the first
456 | // semicolon or end of the line.
457 | const aux_data = new RegExp ('(.+?)(?:;|$)');
458 | match = truncatedWork.match (aux_data);
459 | if (null !== match) {
460 | dkimAux = match[1];
461 | }
462 | }
463 |
464 | // Do the same for SPF data.
465 | statePos = 0;
466 | stateWork = curLine;
467 | while ((!gotSpfState) &&
468 | (-1 !== (statePos = stateWork.indexOf ('spf=')))) {
469 | // Refer to the DKIM section above for more information.
470 | let extract = this.extractMaybeQuotedValue (stateWork, 'spf');
471 |
472 | if (extract.length) {
473 | spfState = extract[0];
474 | stateWork = extract[1];
475 | gotSpfState = true;
476 | }
477 | else {
478 | // Nothing found on this line, continue.
479 | this.LOG ("nothing found on current line (leftover) '" + stateWork + "', continuing...");
480 | continue;
481 | }
482 |
483 | let stateEnd = -1;
484 | let truncatedWork = stateWork;
485 | if (-1 !== (stateEnd = stateWork.indexOf ('spf=', 4))) {
486 | truncatedWork = truncatedWork.substring (0, stateEnd);
487 | }
488 |
489 | // Now fetch additional data.
490 | // Reason is usually enclosed in parentheses.
491 | const paren_reason = new RegExp ('\\(.+?\\)');
492 | let match = truncatedWork.match (paren_reason);
493 | if (null !== match) {
494 | spfReason = match[0];
495 | truncatedWork = truncatedWork.substring (match.index);
496 | truncatedWork = truncatedWork.substring (match[0].length);
497 | }
498 |
499 | // Everything else is additional data.
500 | const aux_data = new RegExp ('(.+?)[;|$]');
501 | match = truncatedWork.match (aux_data);
502 | if (null !== match) {
503 | spfAux = match[1];
504 | }
505 | }
506 | }
507 | if (gotDkimState) {
508 | // Just sanitize our data.
509 | dkimState = this.sanitizeString (dkimState);
510 | dkimReason = this.sanitizeString (dkimReason);
511 | dkimAux = this.sanitizeString (dkimAux);
512 |
513 | var copy = dkimState;
514 | if (dkimReason.length) {
515 | copy += ' - ' + dkimReason;
516 | }
517 | if ((this.options.extrainfo) && (dkimAux.length)) {
518 | copy += '\n ' + dkimAux;
519 | }
520 | copy += '\n \n ' + MailHopsUtils.dkim(dkimState).trim();
521 |
522 | this.LOG ("DKIM state and data: " + copy);
523 | color = 'green';
524 | if(dkimState.toLowerCase().indexOf('soft') != -1 || dkimState.toLowerCase().indexOf('temperror') != -1){
525 | color = 'yellow';
526 | } else if(dkimState.toLowerCase().indexOf('fail') != -1 || dkimState.toLowerCase().indexOf('error') != -1){
527 | color = 'red';
528 | }
529 | auth.push({
530 | type: 'DKIM',
531 | color: color,
532 | icon: '/images/auth/' + dkimState.toLowerCase () + '.png',
533 | copy: copy
534 | });
535 | }
536 | if (gotSpfState) {
537 | spfState = this.sanitizeString (spfState);
538 | spfReason = this.sanitizeString (spfReason);
539 | spfAux = this.sanitizeString (spfAux);
540 |
541 | var copy = spfState;
542 | if (spfReason.length) {
543 | copy += ' ' + spfReason;
544 | }
545 | if ((this.options.extrainfo) && (spfAux.length)) {
546 | copy += '\n ' + spfAux;
547 | }
548 | copy += '\n \n ' + MailHopsUtils.spf(spfState).trim();
549 |
550 | color = 'green';
551 | if(spfState.toLowerCase().indexOf('soft') != -1 || spfState.toLowerCase().indexOf('temperror') != -1){
552 | color = 'yellow';
553 | } else if(spfState.toLowerCase().indexOf('fail') != -1 || spfState.toLowerCase().indexOf('error') != -1){
554 | color = 'red';
555 | }
556 | this.LOG ("SPF state and data: " + copy);
557 | auth.push({
558 | type: 'SPF',
559 | color: color,
560 | icon: '/images/auth/' + spfState.toLowerCase () + '.png',
561 | copy: copy
562 | });
563 | }
564 | }
565 | if (header_unsubscribe) {
566 | var unsubscribeArr = header_unsubscribe.split(',');
567 |
568 | for (var i = 0; i < unsubscribeArr.length; ++i) {
569 | auth.push({
570 | type: 'Unsubscribe',
571 | color: 'grey',
572 | link: unsubscribeArr[i].replace(/, '').replace(/>/, '').trim()
573 | });
574 | }
575 | }
576 | return auth;
577 | }
578 |
579 | //mailhops lookup
580 | lookupRoute(header_route) {
581 | let mailHop = this;
582 |
583 | let lookupURL = '?' + MailHopsUtils.getAPIUrlParams(this.options) + '&r=' + String(header_route) + '&l=' + this.options.lang + '&u=' + this.options.unit;
584 |
585 | if (this.options.owm_key != '')
586 | lookupURL += '&owm_key=' + this.options.owm_key;
587 | if (this.message.time != null)
588 | lookupURL += '&t=' + this.message.time;
589 | if (this.message.date != null)
590 | lookupURL += '&d=' + this.message.date;
591 |
592 | this.message.map_url = MailHopsUtils.getAPIUrl() + '/map/' + lookupURL;
593 |
594 | //call mailhops api for lookup
595 | var xmlhttp = new XMLHttpRequest();
596 | xmlhttp.open("GET", MailHopsUtils.getAPIUrl() + '/lookup/' + lookupURL, true);
597 | xmlhttp.onreadystatechange = function () {
598 | if (xmlhttp.readyState === 4) {
599 | try {
600 | let data = JSON.parse(xmlhttp.responseText);
601 | if (xmlhttp.status === 200) {
602 | mailHop.cacheResponse(data.response);
603 | mailHop.displayRoute(data.response);
604 | //tag the result
605 | mailHop.tagResults(data, data.response.route);
606 | } else if (data.error) {
607 | mailHop.LOG(JSON.stringify(data.error));
608 | //display the error
609 | mailHop.error(xmlhttp.status, data);
610 | }
611 | } catch (e) {
612 | mailHop.LOG(e);
613 | mailHop.error();
614 | }
615 | }
616 | mailHop.isLoaded = true;
617 | mailHop.loading = false;
618 | };
619 | xmlhttp.send(null);
620 | }
621 |
622 | displayRoute(response) {
623 | this.response = response;
624 | this.message.sender = MailHopsUtils.getSender(response.route);
625 |
626 | if (this.message.sender) {
627 | browser.messageDisplayAction.setIcon({ path: this.message.sender.icon, tabId: this.tabId });
628 | browser.messageDisplayAction.setTitle({ title: this.message.sender.title, tabId: this.tabId });
629 | } else {
630 | browser.messageDisplayAction.setIcon({ path: '/images/local.png', tabId: this.tabId });
631 | browser.messageDisplayAction.setTitle({ title: 'Local', tabId: this.tabId });
632 | }
633 | }
634 |
635 | // keep a daily cache
636 | async cacheResponse(response) {
637 | let data = await browser.storage.local.get('messages');
638 | let cached_date = new Date();
639 | let messages = {
640 | cached: cached_date.getUTCFullYear() + '-' + cached_date.getUTCMonth() + '-' + cached_date.getUTCDate(),
641 | list: []
642 | };
643 | if (data.messages && data.messages.list && data.messages.cached === messages.cached) {
644 | messages.list = data.messages.list;
645 | }
646 | messages.list[this.message.hash] = response;
647 | await browser.storage.local.set({ messages: messages });
648 | this.LOG('Cached Message ' + this.message.id + ' hash ' + this.message.hash);
649 | }
650 |
651 | // get cached message
652 | async getCacheResponse() {
653 | let data = await browser.storage.local.get('messages');
654 | if (data.messages && data.messages.list[this.message.hash]) {
655 | this.LOG('Found Cached Message ' + this.message.hash);
656 | return data.messages.list[this.message.hash];
657 | }
658 | return false;
659 | };
660 |
661 | tagResults(results, route) {
662 | if (!results) {
663 | return false;
664 | }
665 |
666 | //Add junk tag on messages taking too long to travel
667 | try {
668 | if (Boolean(this.options.travel_time_junk) && this.message.time != null && this.message.time > 10000) {
669 | messenger.messages.update(this.message.id, { 'junk': true });
670 | this.LOG("Junk: Travel time match for " + this.message.time);
671 | }
672 | if (this.options.country_filter.length && this.message.sender && this.message.sender.countryCode) {
673 | if (this.options.country_filter.indexOf(this.message.sender.countryCode.toUpperCase()) != -1) {
674 | messenger.messages.update(this.message.id, { 'junk': true });
675 | this.LOG("Junk: Country code match for " + this.message.sender.countryCode);
676 | }
677 | }
678 | } catch (e) {
679 | this.LOG("Error tagResults: " + e);
680 | }
681 | }
682 | }
683 |
--------------------------------------------------------------------------------
/js/mailhops_details.js:
--------------------------------------------------------------------------------
1 | const queryString = window.location.search;
2 | const urlParams = new URLSearchParams(queryString);
3 | const tabId = parseInt(urlParams.get("tabId"), 10);
4 |
5 | var port = browser.runtime.connect({ name: "MailHops" });
6 | port.postMessage({ command: "details", tabId });
7 |
8 | port.onMessage.addListener(function (msg) {
9 | updateContent(msg);
10 | document.getElementById("mh-map-button").addEventListener("click", function () {
11 | // rebuild map url if it's not there
12 | if (!msg.message.map_url && msg.response && msg.response.route && msg.response.route.length) {
13 | let header_route = msg.response.route.map(r => r.ip).join(',');
14 | let lookupURL = '?'+MailHopsUtils.getAPIUrlParams(msg.options)+'&r='+String(header_route)+'&l='+msg.options.lang+'&u='+msg.options.unit;
15 |
16 | if(msg.options.owm_key != '')
17 | lookupURL += '&owm_key='+msg.options.owm_key;
18 | if(msg.message.time != null)
19 | lookupURL += '&t=' + msg.message.time;
20 | if(msg.message.date != null)
21 | lookupURL += '&d='+msg.message.date;
22 |
23 | msg.message.map_url = MailHopsUtils.getAPIUrl() + '/map/' + lookupURL;
24 | }
25 | if(msg.message.map_url)
26 | browser.tabs.create({ url: msg.message.map_url });
27 | });
28 | });
29 |
30 | document.getElementById("mh-options-button").addEventListener("click", function () {
31 | browser.tabs.create({ url: '/content/preferences.html' });
32 | });
33 |
34 | function updateContent(msg, noauth) {
35 | //setup reload
36 | document.getElementById("mh-reload-button").addEventListener("click", async function () {
37 | let data = await browser.storage.local.get('messages');
38 | if (data.messages && data.messages.list[msg.message.hash]) {
39 | delete data.messages.list[msg.message.hash];
40 | await browser.storage.local.set({messages: data.messages});
41 | }
42 | this.innerHTML = "Removed!";
43 | document.location.reload();
44 | });
45 |
46 | if (msg.message.error) {
47 | document.getElementById('hop-message').classList.add('warning');
48 | document.getElementById('mh-map-button').style.display = 'none';
49 | document.getElementById('hop-message-header').innerHTML = msg.message.error;
50 | }
51 | else {
52 | document.getElementById('hop-message').classList.remove('warning');
53 | document.getElementById('mh-map-button').style.display = 'inline-block';
54 | }
55 |
56 | const route = msg.response.route || [];
57 | const sender = msg.message.sender || null;
58 | const unit = msg.options.unit || "mi";
59 | const theme = msg.options.theme || "light";
60 | const debug = msg.options.debug || false;
61 | let client = null;
62 | let items = [];
63 |
64 | // update theme
65 | if (theme == "dark") {
66 | if (!document.getElementById("hop-message").classList.contains("inverted")) {
67 | document.getElementById('mh-body').classList.add('inverted');
68 | document.getElementById('hop-message').classList.add('brown');
69 | document.getElementById('hop-list').classList.add('inverted');
70 | document.getElementById('mh-pop-segment').classList.add('inverted');
71 | document.getElementById('mh-map-button').classList.add('inverted');
72 | document.getElementById('mh-reload-button').classList.add('inverted');
73 | document.getElementById('mh-options-button').classList.add('inverted');
74 | }
75 | } else {
76 | if (document.getElementById("hop-message").classList.contains("inverted")) {
77 | document.getElementById('mh-body').classList.remove('inverted');
78 | document.getElementById('hop-message').classList.remove('brown');
79 | document.getElementById('hop-list').classList.remove('inverted');
80 | document.getElementById('mh-pop-segment').classList.remove('inverted');
81 | document.getElementById('mh-map-button').classList.remove('inverted');
82 | document.getElementById('mh-reload-button').classList.remove('inverted');
83 | document.getElementById('mh-options-button').classList.remove('inverted');
84 | }
85 | }
86 |
87 | for (var i = 0; i < route.length; i++) {
88 | var header = 'Private';
89 | var icon = '/images/local.png';
90 | // set the client route
91 | if (route[i].client)
92 | client = route[i];
93 |
94 | if(route[i].countryCode)
95 | icon = '/images/flags/' + route[i].countryCode.toLowerCase() + '.png';
96 |
97 | if(route[i].city && route[i].state)
98 | header = route[i].city + ', ' + route[i].state;
99 | else if(route[i].city && route[i].countryCode)
100 | header = route[i].city + ', ' + route[i].countryCode;
101 | else if (route[i].city)
102 | header = route[i].city;
103 | else if (route[i].state)
104 | header = route[i].state;
105 | else if (route[i].countryName)
106 | header = route[i].countryName;
107 |
108 | var description = '' + route[i].ip + ' ';
109 |
110 | if (msg.message.secure.indexOf(route[i].ip) !== -1) {
111 | description += ' ';
112 | }
113 |
114 | if (route[i].host)
115 | description += route[i].host;
116 | if (route[i].whois && route[i].whois.descr)
117 | description += MailHopsUtils.htmlEncode(route[i].whois.descr);
118 | if (route[i].whois && route[i].whois.netname)
119 | description += MailHopsUtils.htmlEncode(route[i].whois.netname);
120 |
121 | var weather = '';
122 | if (route[i].weather) {
123 | weather = ' ';
124 | weather += Math.round(route[i].weather.temp).toString() + '°' + route[i].weather.temp_unit+' ';
125 | weather += route[i].weather.summary;
126 | }
127 |
128 | var asn = '';
129 | if (route[i].asn) {
130 | asn = ' ASN Org: ' + MailHopsUtils.htmlEncode(route[i].asn.autonomous_system_organization);
131 | asn += ' (' + route[i].asn.autonomous_system_number + ' )'
132 | }
133 |
134 | // append child
135 | items.push('');
136 | }
137 |
138 | var auth = '';
139 | if (!noauth && msg.message.auth.length) {
140 | for (var a = 0; a < msg.message.auth.length; a++){
141 | if (msg.message.auth[a].icon) {
142 | var add = '' + msg.message.auth[a].type + ' ' + msg.message.auth[a].copy + '
';
143 | if (debug) {
144 | console.log("adding to auth (type icon): '" + add + "'");
145 | }
146 | auth += add;
147 | }
148 | else if (msg.message.auth[a].link) {
149 | var add = '';
150 |
151 | // We only check for a comma in case our base code failed to split
152 | // the header links up correctly.
153 | // Usually, it should work fine and add multiple buttons for
154 | // multiple links.
155 | if (-1 != msg.message.auth[a].link.indexOf(',')) {
156 | add = '' + msg.message.auth[a].type + ' ';
157 | }
158 | else {
159 | add = '' + msg.message.auth[a].type + ' ';
160 | }
161 | if (debug) {
162 | console.log("adding to auth (type link): '" + add + "'");
163 | }
164 | auth += add;
165 | }
166 | }
167 | }
168 |
169 | // header
170 | if (!msg.message.error) {
171 | document.getElementById('hop-message-header').innerHTML = `${route.length} Hops`;
172 | if (sender && client) {
173 | document.getElementById('hop-message-header').innerHTML += ' over '+MailHopsUtils.getDistance(sender, client, unit) + ' ' + unit;
174 | }
175 | }
176 |
177 | // hop list
178 | document.getElementById('hop-list').innerHTML = items.join('');
179 | try {
180 | document.getElementById('mh-auth').innerHTML = auth;
181 | } catch (error) {
182 | if(error)
183 | console.error('MailHops', error);
184 | // if auth has bad html load without auth
185 | if(!noauth)
186 | updateContent(msg, true);
187 | }
188 | }
189 |
--------------------------------------------------------------------------------
/js/preferences.js:
--------------------------------------------------------------------------------
1 | const MailHopPreferences = {
2 | api_key: '', //api key
3 | valid_api_key: false,
4 | unit: 'mi',
5 | theme: 'light',
6 | travel_time_junk: false,
7 | extrainfo: false,
8 | debug: false,
9 | owm_key: '', //OpenWeatherMap.org api key
10 | countries: [],
11 |
12 | init: async function(){
13 | var self = this;
14 | this.api_key = document.getElementById("mailhop.api_key");
15 | this.owm_key = document.getElementById("mailhop.owm_key");
16 |
17 | if (!this.api_key) return;
18 |
19 | document.getElementById("mh-save").addEventListener("click", function (event) {
20 | event.preventDefault();
21 | event.stopPropagation();
22 | self.saveAPIKey();
23 | });
24 |
25 | document.getElementById("mh-send-key").addEventListener("click", function (event) {
26 | event.preventDefault();
27 | event.stopPropagation();
28 | self.sendAPIKey();
29 | });
30 |
31 | document.getElementById("mh-save-options").addEventListener("click", function () {
32 | self.savePreferences();
33 | });
34 |
35 | document.getElementById("mh-save-filter").addEventListener("click", function () {
36 | self.savePreferences();
37 | });
38 |
39 | document.getElementById("mh-clear-filter").addEventListener("click", function () {
40 | self.clearCountries();
41 | self.savePreferences();
42 | });
43 |
44 | document.getElementById("step_one").addEventListener("click", function () {
45 | document.getElementById("step_two").classList.remove('active');
46 | document.getElementById("step_three").classList.remove('active');
47 | this.classList.add('active');
48 | document.getElementById("step_filter").style.display = 'none';
49 | document.getElementById("step_settings").style.display = 'none';
50 | document.getElementById("step_api_keys").style.display = 'block';
51 | document.getElementById("saved_message").style.display = 'none';
52 | document.getElementById("error_message").style.display = 'none';
53 | });
54 |
55 | document.getElementById("step_two").addEventListener("click", function () {
56 | document.getElementById("step_one").classList.remove('active');
57 | document.getElementById("step_three").classList.remove('active');
58 | this.classList.add('active');
59 | document.getElementById("step_filter").style.display = 'none';
60 | document.getElementById("step_settings").style.display = 'block';
61 | document.getElementById("step_api_keys").style.display = 'none';
62 | document.getElementById("saved_message").style.display = 'none';
63 | document.getElementById("error_message").style.display = 'none';
64 | });
65 |
66 | document.getElementById("step_three").addEventListener("click", function () {
67 | document.getElementById("step_one").classList.remove('active');
68 | document.getElementById("step_two").classList.remove('active');
69 | this.classList.add('active');
70 | document.getElementById("step_filter").style.display = 'block';
71 | document.getElementById("step_settings").style.display = 'none';
72 | document.getElementById("step_api_keys").style.display = 'none';
73 | document.getElementById("saved_message").style.display = 'none';
74 | document.getElementById("error_message").style.display = 'none';
75 | });
76 |
77 | const data = await browser.storage.local.get();
78 |
79 | this.theme = data.theme || 'light';
80 | this.unit = data.unit || 'mi';
81 | this.travel_time_junk = Boolean(data.travel_time_junk);
82 | this.extrainfo = Boolean(data.extrainfo);
83 | this.debug = Boolean(data.debug);
84 |
85 | if (data.countries) {
86 | this.countries = data.countries.split(',');
87 | }
88 |
89 | let countries = document.getElementsByClassName("country");
90 |
91 | for(var i = 0; i < countries.length; i++) {
92 | (function(index) {
93 | countries[index].addEventListener("click", function () {
94 | if (this.checked) {
95 | self.countries.push(this.value);
96 | } else if (self.countries.indexOf(this.value) != -1) {
97 | self.countries.splice(self.countries.indexOf(this.value), 1);
98 | }
99 | });
100 | })(i);
101 | }
102 |
103 | if (data.api_key) {
104 | self.api_key.value = data.api_key;
105 | document.getElementById("join-link").innerHTML = 'My Account and Dashboard';
106 | document.getElementById("join-link").setAttribute('href', 'https://www.mailhops.com/account/' + data.api_key);
107 | }
108 |
109 | if (data.owm_key) {
110 | self.owm_key.value = data.owm_key;
111 | }
112 |
113 | if (data.unit == "mi")
114 | document.getElementById("unit_mi").setAttribute('checked', 'checked');
115 | else
116 | document.getElementById("unit_km").setAttribute('checked', 'checked');
117 |
118 | if (this.theme == "dark")
119 | document.getElementById("theme_dark").setAttribute('checked', 'checked');
120 | else
121 | document.getElementById("theme_light").setAttribute('checked', 'checked');
122 |
123 | if (this.travel_time_junk)
124 | document.getElementById("travel_time_junk_on").setAttribute('checked', 'checked');
125 | else
126 | document.getElementById("travel_time_junk_off").setAttribute('checked', 'checked');
127 |
128 | if (this.extrainfo)
129 | document.getElementById("extrainfo_on").setAttribute('checked', 'checked');
130 | else
131 | document.getElementById("extrainfo_off").setAttribute('checked', 'checked');
132 |
133 | if (this.debug)
134 | document.getElementById("debug_on").setAttribute('checked', 'checked');
135 | else
136 | document.getElementById("debug_off").setAttribute('checked', 'checked');
137 |
138 | this.updateTheme();
139 | this.updateCountries();
140 |
141 | await this.saveAPIKey(true);
142 | await this.loadAccounts();
143 | },
144 |
145 | updateTheme: function () {
146 | if (this.theme == "dark") {
147 | if (!document.getElementById("mh-main-segment").classList.contains("inverted")) {
148 | document.getElementById("mh-main-segment").classList.add("inverted");
149 | document.getElementById("mh-steps").classList.add("inverted");
150 | document.getElementById("mh-segment").classList.add("inverted");
151 | document.getElementById("mh-form").classList.add("inverted");
152 | document.getElementById("step_settings").classList.add("inverted");
153 | document.getElementById("mh-save").classList.add("inverted");
154 | document.getElementById("mh-save-options").classList.add("inverted");
155 | document.getElementById("mh-save-filter").classList.add("inverted");
156 | document.getElementById("mh-clear-filter").classList.add("inverted");
157 | }
158 | } else {
159 | if (document.getElementById("mh-main-segment").classList.contains("inverted")) {
160 | document.getElementById("mh-main-segment").classList.remove("inverted");
161 | document.getElementById("mh-steps").classList.remove("inverted");
162 | document.getElementById("mh-segment").classList.remove("inverted");
163 | document.getElementById("mh-form").classList.remove("inverted");
164 | document.getElementById("step_settings").classList.remove("inverted");
165 | document.getElementById("mh-save").classList.remove("inverted");
166 | document.getElementById("mh-save-options").classList.remove("inverted");
167 | document.getElementById("mh-save-filter").classList.remove("inverted");
168 | document.getElementsByClassName("checkbox").classList.remove("inverted");
169 | document.getElementById("mh-clear-filter").classList.remove("inverted");
170 | }
171 | }
172 | },
173 |
174 | loadAccounts: async function () {
175 | let accounts = await messenger.accounts.list();
176 | if (accounts.length) {
177 | accounts.map(a => {
178 | if (a.identities.length && a.identities[0].email) {
179 | var option = document.createElement('option');
180 | option.value = a.identities[0].email;
181 | option.text = a.identities[0].email;
182 | document.getElementById("email-accounts").add(option);
183 | }
184 | });
185 | document.getElementById("email-accounts").selectedIndex = 0;
186 | }
187 | },
188 |
189 | updateCountries: function (clear) {
190 | var countries = document.getElementById("country-list").getElementsByClassName("checkbox");
191 | var self = this;
192 | for(var i = 0; i < countries.length; i++) {
193 | (function (index) {
194 | if (clear)
195 | countries[index].children[0].checked = false;
196 | else if (self.countries.indexOf(countries[index].children[0].value) != -1)
197 | countries[index].children[0].checked = true;
198 | if (self.theme == 'dark')
199 | countries[index].classList.add("inverted");
200 | else
201 | countries[index].classList.remove("inverted");
202 | })(i);
203 | }
204 | },
205 |
206 | clearCountries: function () {
207 | this.countries = [];
208 | this.updateCountries(true);
209 | },
210 |
211 | savePreferences: async function (init) {
212 | var self = this;
213 | await browser.storage.local.set({
214 | api_key: self.api_key.value.trim(),
215 | owm_key: self.owm_key.value.trim(),
216 | unit: document.querySelector('input[name="unit"]:checked').value,
217 | theme: document.querySelector('input[name="theme"]:checked').value,
218 | travel_time_junk: document.querySelector('input[name="travel_time_junk"]:checked').value == 'on' ? true : false,
219 | extrainfo: document.querySelector('input[name="extrainfo"]:checked').value == 'on' ? true : false,
220 | debug: document.querySelector('input[name="debug"]:checked').value == 'on' ? true : false,
221 | countries: self.countries.join(','),
222 | });
223 | if(!init)
224 | document.getElementById("saved_message").style.display = 'block';
225 |
226 | this.theme = document.querySelector('input[name="theme"]:checked').value;
227 | this.updateTheme();
228 | this.updateCountries();
229 | return true;
230 | },
231 |
232 | sendAPIKey: async function () {
233 | document.getElementById("saved_message").style.display = 'none';
234 | document.getElementById("error_message").style.display = 'none';
235 | if (document.getElementById("email-accounts").selectedIndex && document.getElementById("email-accounts").selectedIndex >= 0) {
236 | var email = document.getElementById("email-accounts").options[document.getElementById("email-accounts").selectedIndex].text;
237 | if (email) {
238 | var xmlhttp = new XMLHttpRequest();
239 | var apiBase = 'https://www.mailhops.com/account/lostkey.php';
240 | xmlhttp.open("POST", apiBase, true);
241 | xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
242 | xmlhttp.onreadystatechange = function () {
243 | if (xmlhttp.readyState === 4) {
244 | // var data = JSON.parse(xmlhttp.responseText);
245 | if (xmlhttp.status === 200) {
246 | document.getElementById("saved_message").style.display = 'block';
247 | } else {
248 | document.getElementById("error_message").style.display = 'block';
249 | }
250 | }
251 | };
252 | xmlhttp.send('email=' + email);
253 | } else {
254 | document.getElementById("error_message").style.display = 'block';
255 | }
256 | } else {
257 | document.getElementById("error_message").style.display = 'block';
258 | }
259 | return false;
260 | },
261 |
262 | planError: function(error){
263 | this.valid_api_key=false;
264 | document.getElementById("plan-error").style.display = 'block';
265 | document.getElementById("plan-error").innerHTML = error;
266 | document.getElementById("plan").innerHTML = '';
267 | document.getElementById("status").innerHTML = '';
268 | document.getElementById("rate-limit").innerHTML = '';
269 | document.getElementById("rate-remaining").innerHTML = '';
270 | document.getElementById("rate-reset").innerHTML = '';
271 | },
272 |
273 | saveAPIKey: async function(init) {
274 | var xmlhttp = new XMLHttpRequest();
275 | var apiBase = 'https://api.mailhops.com',
276 | accountURL = '/v2/accounts/',
277 | self = this;
278 |
279 | if (Boolean(this.api_key) && this.api_key.value != '') {
280 | accountURL += '?api_key='+this.api_key.value.trim();
281 | }
282 |
283 | xmlhttp.open("GET", apiBase+accountURL, true);
284 | xmlhttp.onreadystatechange=function() {
285 | if (xmlhttp.readyState===4) {
286 | try {
287 | var data = JSON.parse(xmlhttp.responseText);
288 | if(xmlhttp.status===200){
289 | self.valid_api_key=true;
290 | document.getElementById("plan-error").style.display = 'none';
291 | // set plan info
292 | if (data.account.subscriptions) {
293 | document.getElementById("plan").innerHTML = "Plan: " + data.account.subscriptions.data[0].plan.name;
294 | document.getElementById("status").innerHTML = "Status: " + data.account.subscriptions.data[0].status;
295 | } else {
296 | document.getElementById("plan").innerHTML = "Plan: No Plan Yet";
297 | document.getElementById("status").innerHTML = "Status: Not Active";
298 | }
299 | document.getElementById("rate-limit").innerHTML = "Limit: " + data.account.rate.limit;
300 | document.getElementById("rate-remaining").innerHTML = "Remaining: " + data.account.rate.remaining;
301 | if (data.account.rate.reset / 60 < 60)
302 | document.getElementById("rate-reset").innerHTML = "Resets in: " + Math.round(data.account.rate.reset / 60) + " min.";
303 | else
304 | document.getElementById("rate-reset").innerHTML = "Resets in: " + Math.round(data.account.rate.reset / 60 / 60) + " hr.";
305 |
306 | if (Boolean(self.api_key) && self.api_key.value != '') {
307 | document.getElementById("join-link").innerHTML = 'My Account and Dashboard';
308 | document.getElementById("join-link").setAttribute('href', 'https://mailhops.com/account/' + self.api_key.value);
309 | }
310 |
311 | } else if (xmlhttp.status === 401) {
312 | self.planError("That API key could not be found.");
313 | }
314 | else if (!!data.error) {
315 | self.planError(xmlhttp.status+': '+data.error.message);
316 | }
317 | MailHopPreferences.savePreferences(init);
318 | } catch (e){
319 | self.planError('Connection Failed to\n ' + e + '!');
320 | }
321 | }
322 | };
323 | xmlhttp.send(null);
324 | return null;
325 | }
326 |
327 | };
328 |
329 | MailHopPreferences.init();
330 |
--------------------------------------------------------------------------------
/js/utils.js:
--------------------------------------------------------------------------------
1 | const MailHopsUtils = {
2 |
3 | dkim: function(result){
4 |
5 | switch(result){
6 |
7 | case 'none':
8 | return 'The message was not signed.';
9 |
10 | case 'pass':
11 | return 'The message was signed, the signature or signatures were acceptable to the verifier, and the signature(s) passed verification tests.';
12 |
13 | case 'fail':
14 | case 'hardfail':
15 | return 'The message was signed and the signature or signatures were acceptable to the verifier, but they failed the verification test(s).';
16 |
17 | case 'policy':
18 | return 'The message was signed but the signature or signatures were not acceptable to the verifier.';
19 |
20 | case 'neutral':
21 | return 'The message was signed but the signature or signatures contained syntax errors or were not otherwise able to be processed. This result SHOULD also be used for other failures not covered elsewhere in this list.';
22 |
23 | case 'temperror':
24 | return 'The message could not be verified due to some error that is likely transient in nature, such as a temporary inability to retrieve a public key. A later attempt may produce a final result.';
25 |
26 | case 'permerror':
27 | return 'The message could not be verified due to some error that is unrecoverable, such as a required header field being absent. A later attempt is unlikely to produce a final result.';
28 |
29 | default:
30 | return '';
31 | }
32 | },
33 |
34 | spf: function(result){
35 |
36 | switch(result){
37 |
38 | case 'none':
39 | return 'No policy records were published at the sender\'s DNS domain.';
40 |
41 | case 'neutral':
42 | return 'The sender\'s ADMD has asserted that it cannot or does not want to assert whether or not the sending IP address is authorized to send mail using the sender\'s DNS domain.';
43 |
44 | case 'pass':
45 | return 'The client is authorized by the sender\'s ADMD to inject or relay mail on behalf of the sender\'s DNS domain.';
46 |
47 | case 'policy':
48 | return 'The client is authorized to inject or relay mail on behalf of the sender\'s DNS domain according to the authentication method\'s algorithm, but local policy dictates that the result is unacceptable.'
49 |
50 | case 'hardfail':
51 | return 'This client is explicitly not authorized to inject or relay mail using the sender\'s DNS domain.';
52 |
53 | case 'softfail':
54 | return 'The sender\'s ADMD believes the client was not authorized to inject or relay mail using the sender\'s DNS domain, but is unwilling to make a strong assertion to that effect.';
55 |
56 | case 'temperror':
57 | return 'The message could not be verified due to some error that is likely transient in nature, such as a temporary inability to retrieve a policy record from DNS. A later attempt may produce a final result.';
58 |
59 | case 'permerror':
60 | return 'The message could not be verified due to some error that is unrecoverable, such as a required header field being absent or a syntax error in a retrieved DNS TXT record. A later attempt is unlikely to produce a final result.';
61 |
62 | default:
63 | return '';
64 | }
65 | },
66 |
67 | dnsbl: function(result,abbr){
68 |
69 | switch(result){
70 |
71 | case '127.0.0.2':
72 | case '127.0.0.3':
73 | if(abbr)
74 | return 'SBL';
75 | else
76 | return 'Static UBE sources, verified spam services and ROKSO spammers.';
77 |
78 | case '127.0.0.4':
79 | case '127.0.0.5':
80 | case '127.0.0.6':
81 | case '127.0.0.7':
82 | if(abbr)
83 | return 'XBL';
84 | else
85 | return 'Illegal 3rd party exploits, including proxies, worms and trojan exploits.';
86 |
87 | case '127.0.0.10':
88 | case '127.0.0.11':
89 | if(abbr)
90 | return 'PBL';
91 | else
92 | return 'IP ranges which should not be delivering unauthenticated SMTP email.';
93 |
94 | default:
95 | return '';
96 | }
97 | },
98 |
99 | addCommas: function(nStr){
100 | nStr += '';
101 | var x = nStr.split('.');
102 | var x1 = x[0];
103 | var x2 = x.length > 1 ? '.' + x[1] : '';
104 | var rgx = /(\d+)(\d{3})/;
105 | while (rgx.test(x1)) {
106 | x1 = x1.replace(rgx, '$1' + ',' + '$2');
107 | }
108 | return x1 + x2;
109 | },
110 |
111 | launchSpamHausURL: function(ip){
112 | this.launchExternalURL('http://www.spamhaus.org/query/bl?ip=' + ip);
113 | },
114 |
115 | getAPIUrl: function(){
116 | return 'https://api.mailhops.com/v2';
117 | },
118 |
119 | getAPIUrlParams: function(options){
120 | if(!!options.api_key && options.api_key != '')
121 | return 'app='+options.version+'&api_key='+options.api_key;
122 | return 'app='+options.version;
123 | },
124 |
125 | getSecureTrans: function(ip, message){
126 | for(var i=0; i= 4 && hr <= 18)?'day':'night';
151 | return 'chrome://mailhops/content/images/weather/'+forecast_icons[icon][time]+'.png';
152 | },
153 |
154 | getDistance: function(from, to, unit) {
155 | if(!from || !to || !from.coords)
156 | return 0;
157 |
158 | var lat = parseFloat(from.coords[1]);
159 | var lon1 = parseFloat(from.coords[0]);
160 | var lat2 = parseFloat(to.coords[1]);
161 | var lon2 = parseFloat(to.coords[0]);
162 | unit = unit || 'mi'; //mi or km
163 |
164 | lat *= (Math.PI/180);
165 | lon1 *= (Math.PI/180);
166 | lat2 *= (Math.PI/180);
167 | lon2 *= (Math.PI/180);
168 |
169 | var dist = 2*Math.asin(Math.sqrt( Math.pow((Math.sin((lat-lat2)/2)),2) + Math.cos(lat)*Math.cos(lat2)*Math.pow((Math.sin((lon1-lon2)/2)),2))) * 6378.137;
170 |
171 | if (unit == 'mi') {
172 | dist = (dist / 1.609344);
173 | }
174 | return this.addCommas(Math.round(dist));
175 | },
176 | getSender: function(route) {
177 | if(route && route.length){
178 | for (var r = 0; r < route.length; r++){
179 | if (typeof route[r].local == 'undefined' &&
180 | typeof route[r].client == 'undefined' &&
181 | Boolean(route[r].countryCode)) {
182 | // set icon
183 | route[r].icon = '/images/flags/' + route[r].countryCode.toLowerCase() + '.png';
184 | // set title
185 | route[r].title = (route[r].city && route[r].state)
186 | ? `${route[r].city}, ${route[r].state}`
187 | : (route[r].city ? `${route[r].city}, ${route[r].countryCode}` : route[r].countryName);
188 | return route[r];
189 | }
190 | }
191 | }
192 | return null;
193 | },
194 | htmlEncode: function (text) {
195 | return text.replace(/&/g, "&").replace(/>/g, ">").replace(/