#829672 icedove: Cannot open some attachments from the compose window

#829672#5
Date:
2016-07-05 08:40:15 UTC
From:
To:
Dear Maintainer,

I found this behaviour in icedove:

1. Click "Write" to compose a new message
2. Attach a PDF file
3. Double-Click the attached file (i.e. to verify it's the right one)

Expected behaviour:
Icedove asks whether to open or save the file, and when clicking "open", the
attachment opens with the associated application

Real behaviour:
Icedove asks whether to open or save the file, and when clicking "open",
nothing happens

Until now, I can only reproduce that with PDF files, but not with plain text,
OpenDocument, JPEG - these behave as expected.
Opening PDF attachments from *received* messages (or messages in the "Sent"
folder) works as expected. Occurs with several different accounts.

Since I regularly double-check attached files before sending, I am pretty sure
this worked in earlier versions.

Might be an upstream bug since it occurs in thunderbird for Ubuntu as well.

I tried running icedove from the console but got no helpful output. Tried in
safe mode, does not change anything.

#829672#10
Date:
2016-07-05 14:47:15 UTC
From:
To:
Hello Andreas,

my setups work as you expected.
Please check the settings for Icedove Settings in

Menu -> Edit -> Preferences -> Attachments; Incomming -> Content Type 'PDF File'

There you have probably 'Save File' selected.

Regards
Carsten

#829672#15
Date:
2016-07-06 06:42:11 UTC
From:
To:
Am 05.07.2016 um 16:47 schrieb Carsten Schoenert:

I took a look at these settings and actually found two associations for
PDF files. One is labeled "application/pdf: .pdf", the other
"application/force-download: .pdf". Both were initially set to "Always ask".

I found out that "application/pdf" is applied to all *received* mails
with PDF attachments, whereas "application/force-download" is used when
*writing* a message. If I change "application/force-download" from the
default to e.g. "evince", then it works as expected.

This is not unusual since "application/force-download" is not meant to
be opened with any application. The question is, why is
icedove/thunderbird using the MIME type application/force-download in
this case?