IMAP: attachment in OpenPGP/MIME message appears to be empty
OpenPGP addon for Mozilla Thunderbird
Brought to you by:
pbrunschwig
Note: I am writing this bug report for a fried who doesn't have the time at the moment, so it would be cool if someone could reproduce the problem.
When trying to open/save attachments in an OpenPGP/MIME encrypted message which has been retrieved "online" via IMAP, Thunderbird complains:
"This attachment appears to be empty.
Please check with the person who sent this.
Often company firewalls or antivirus programs will destroy attachments."
Saving the message to a local folder helps, then the attachment can be saved correctly.
This problem looks a lot like the following:
Diff:
If you go to Enigmail -> Preferences, select "Advanced Tab" (you have to select "Show Expert settings" in the "Basic" tab).
What is the setting of "Only download attachments when opened (IMAP only)"? If the checkbox left to it is selected, please uncheck it and test again.
Unfortunately, that setting does not seem to change anything.
Looks like a bug related to PGP Mime mails on manual decrypt.
I had the same problem and it was caused by manually decrypting mails, the option "Automatically decrypt/verify" was disabled.
When it is disabled, it triggers an error, possibly related to this section (search for "POSSIBLE_PGPMIME" in the source code):
https://sourceforge.net/p/enigmail/source/ci/1ceeb0d68d896683a76df09c894226570d163881/
See the more detailed posting in the forum for more details:
https://sourceforge.net/p/enigmail/forum/support/thread/08ea7cf9/#8908
I can reproduce this indeed with "Global Search Database" off, and the folder set to not stored locally, and manual decryption on.
Fixed on master.