Package: thunderbird
Version: 1:91.7.0-2
Severity: minor

Since thunderbird-87 it is possible to open particular messages from command line through their Message-ID's:

    thunderbird 'mid:23bc2bd1b0affd193daf52c8f4372...@smtp.spaceroots.org'

See e.g. https://bugzilla.mozilla.org/264270 The "mid:" URI scheme is defined in https://www.rfc-editor.org/rfc/rfc2392.html "Content-ID and Message-ID Uniform Resource Locators"

However to open links from other application, "mid:" scheme should be advertised in the thunderbird.desktop file:


MimeType=message/rfc822;x-scheme-handler/mailto;x-scheme-handler/mid;text/calendar;text/x-vcard;

instead of


MimeType=message/rfc822;x-scheme-handler/mailto;text/calendar;text/x-vcard;

Please, adjust this field in the desktop file. To check that the change has effect the following command may be used:

    xdg-open 'mid:23bc2bd1b0affd193daf52c8f4372...@smtp.spaceroots.org'

Notice that it is not an upstream issue. Thunderbird developers left desktop integration up to maintainers of Linux distributions. E.g. in Ubuntu the thunderbird.desktop" file has been updated already for the upcoming release, see https://bugs.launchpad.net/bugs/1960614

Long time ago it was possible to create similar links to particular messages using thunderlink extension but migration from XUL to WebExtension add-ons broke it. Support of the "mid:" scheme restores linking of mail messages from other applications.

Workaround: add to the ~/.config/mimeapps.list file

[Added Associations]
x-scheme-handler/mid=thunderbird.desktop;

[Default Applications]
x-scheme-handler/mid=thunderbird.desktop;

Reply via email to