1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-15 22:00:08 -07:00
Mihai Moldovan e3bbbe2c49 js/mailhops.js: completely rework AH parsing.
Since the AH can comprise multiple lines, parse each line individually
until we found all data.

The parsing is complicated, but naïve field splitting leads to incorrect
results.

Generally, scan up to the next "dkim=" part, extract the state (which is
the value) and then look for the reason, which might or might not be
parenthesis-enclosed or start with a "reason=" key or both.

All other data up to the next "dkim=" part or end of the line or
semicolon will be treated as extrainfo and shown if the preference has
been enabled.

We handle "spf=" parts in about the same way.
2024-04-17 12:55:47 +02:00
2019-12-18 22:44:51 -07:00
2021-03-23 01:51:47 -06:00
2020-11-12 16:58:13 -07:00
2023-04-07 17:14:30 -06:00
2023-04-07 17:14:30 -06:00
2020-11-12 09:56:47 -07:00

MailHops Thunderbird Plugin

www.MailHops.com

MailHops logo

MailHops is an email route API. It does a few things:

  1. Returns the route an email took based on the Received header IP addresses
  2. Shows you a map an email took based on the Received header IP addresses
  3. Shows the weather of the sender when you provide a OpenWeatherMap API key.
  4. Will tag and mark messages as Junk if the travel time is too long.
  5. Performs DNSBL check on messages.
  6. Shows DKIM and SPF Authentication results.

MailHops Message View

MailHops Message View

MailHops Route Map

MailHops Route Map

MailHops Options

MailHops Options

MailHops Dashboard

MailHops Dashboard

Editing the code

  1. After you make changes you can run the build.sh script
  2. Open Postbox or Thunderbird and goto Tools->Add-ons and "Install Add-on From File..."
  3. Choose mailhops.xpi from build script
$ chmod +x build.sh
$ ./build.sh

MailHops API

Download

Description
No description provided
Readme MPL-2.0 9.4 MiB
Languages
HTML 55.7%
JavaScript 44.1%
Shell 0.1%