Add message/rfc822 to thunderbird.desktop

Bug #1861262 reported by Mikhail Novosyolov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Fix Released
Wishlist
Olivier Tilloy

Bug Description

Please add message/rfc822 to thunderbird.desktop:

-MimeType=x-scheme-handler/mailto;application/x-xpinstall;
+MimeType=x-scheme-handler/mailto;application/x-xpinstall;message/rfc822;

It will allow to open *.eml files. I attach an example eml file.

Tags: focal
Revision history for this message
Mikhail Novosyolov (mikhailnov) wrote :
Changed in thunderbird (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: focal
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's an upstream issue, could you report it to them on https://bugzilla.mozilla.org/enter_bug.cgi ?

Revision history for this message
Olivier Tilloy (osomon) wrote :

When you do report it upstream, please share the link to the upstream bug report here. Thanks!

Revision history for this message
Lucas Sandery (lucas+-) wrote :

@seb128 I'm not sure it's upstream. <https://bugzilla.mozilla.org/show_bug.cgi?id=371734> has been around forever and was marked as duplicate of the still open <https://bugzilla.mozilla.org/show_bug.cgi?id=296568> where it appears Mozilla doesn't want to do anything about it. The earliest ancestor of that file I can find in the source is from 2010 <https://bazaar.launchpad.net/~mozillateam/thunderbird/thunderbird.groovy/revision/115#debian/thunderbird-3.0.desktop>.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Indeed the desktop file for thunderbird is not upstream, it's part of the packaging.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in thunderbird (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Olivier Tilloy (osomon)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package thunderbird - 1:91.6.1+build1-0ubuntu1

---------------
thunderbird (1:91.6.1+build1-0ubuntu1) jammy; urgency=medium

  * New upstream stable release (91.6.1build1)

 -- Olivier Tilloy <email address hidden> Mon, 14 Feb 2022 20:35:29 +0100

Changed in thunderbird (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Max (m-gorodok) wrote :

Thank you for updating the .desktop file.

The issue is more hairy than it seems at first glance. E.g. https://debbugs.gnu.org/ sends "Content-disposition" header with ".mbox" suffix when a single comment in mbox format is requested (to reply to particular message). Thunderbird believes that a suitable action is to compose a new message with downloaded file as an attachment.

There is no command line option to force thunderbird to open a file as namely mail message. The position of developers is that such file must have ".eml" extension otherwise it is not a message. See https://bugzilla.mozilla.org/show_bug.cgi?id=1755454 for details (bug title has been changed to fix a loosely related issue).

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the additional insights Max. If I understand correctly, that's not an issue that can be fixed by merely updating the desktop file or packaging parameters of thunderbird in Ubuntu, it would have to be addressed by the upstream project.

Revision history for this message
Max (m-gorodok) wrote :

> If I understand correctly, that's not an issue that can be fixed
> by merely updating the desktop file or packaging parameters
> of thunderbird in Ubuntu, it would have to be addressed
> by the upstream project.

I have added a comment to make users (who will face a problem despite a fix) aware of idiosyncrasy of handling command line options by thunderbird.

I do not expect that Ubuntu team will ship additional wrapper to deal with the issue. Those, who desperately need it working, may write a script that creates a symlink with ".eml" suffix and a desktop file to open "message/rfc822" files using this script.

I am afraid that security issues might happen because mozilla soft relies too much on heuristics and does not allow to explicitly express intention through command line options. It is even impossible to ensure that nothing following should be considered as options, remaining arguments are URIs or files ("--" separator for a lot of tools).

Anyway the fix is a step forward. At least files having ".eml" suffix may be conveniently viewed.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Ack, thanks for the detailed rationale Max. Users who come across the issue will indeed appreciate to find an explanation here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.