Thunderbird add-on for displaying the "Received" header parsed with a regular expression.
BSD-3-CLAUSE License
The Received add-on for Thunderbird displays "Received" headers parsed with a customizable regular expression, allowing for detailed analysis of email routing.
This add-on clarifies email delivery paths, helping users understand the origins and flow of their emails.
To install the Received add-on, choose one of the following options:
moz://a
on the Thunderbird Add-ons page.The XPI
installation package is essentially a ZIP
file with a different extension.
To create it, zip the contents of the add-on's directory (not the add-on directory itself), excluding hidden files and folders that begin with a period. Rename the ZIP file to have an .xpi
extension (or simply drag and drop the ZIP into the Add-ons Manager
tab).
The ZIP file should maintain the following structure:
received-master.zip
chrome/
defaults/
chrome.manifest
install.rdf
... (other files and directories)
And not this structure:
received-master.zip
received-master/
chrome/
defaults/
chrome.manifest
install.rdf
... (other files and directories)
(.*)
will display all "Received" headers. Modify this to display specific parts, such as the originating host.This section presents several regular expressions for parsing "Received" headers in emails. These examples can be customized further based on your needs.
Display all "Received" headers:
(.*)
Captures all "Received" headers.
Identify the originating host:
^from (.+?) by mx\.example\.com
Matches the host in the first "Received" header added by the recipient's SMTP server.
Exclude TLS information:
^from (.+?)(?: \(using .+ requested\))? by mx\.example\.com
Similar to the previous example, but omits TLS information if present.
Support for multiple mail servers:
^from (.+?)(?: \(using .+ requested\))? by (?:mx\.example\.com|mx\.example\.org|[a-z]{3}\d-[0-9a-f]{12}\.qloud-c\.yandex\.net \(mxfront/Yandex\))
Similar to the previous example, but accommodates accounts configured in Thunderbird on different mail servers, including mx.example.com
, mx.example.org
, and Yandex.Mail Service.
Capture host and timestamp:
^from (.+?) by mx\.example\.com.+for.+(; .+)$
Uses two capturing groups to extract both the host and the timestamp.