Via Tender: Attachment1.pgp filename (from Outlook)
Assigned to Tender discussion #904. As reported in Tender:
I tried to search but did not find anything in the todo list or
in the forum. I found references to the problems in Enigmail.
The issue is PGP (or the Outlook plugin ?) re-naming email
attachments as Attachment1.pgp and "hiding" the real attachment
file name in a "literal data packet". You can get to this data by
using "gpg --list-packets Attachement1.pgp".
Apparently GPGServices (recent nightly from a couple of weeks
ago) ignores this packet and just generates a (decrypted) file
named "Attachement1" - not ultra convenient, in particular not to
have the file extension/type...
Am I doing something wrong, is it in the roadmap, or is it a new
idea that probably should be added to it ?
Thanks for the excellent support!
Comments and changes to this ticket
More info from that discussion:
Below is a quote from a seemingly informed answer:
PGP Desktop does not use the "normal" inline or PGP/MIME
encodings, but its own "Partitioned PGP" encoding. This is in fact an
improvement over inline encoding, since it provides more privacy by
encrypting the attachment names, which is then stored as a "literal data
packet (tag 11)" (see section 5.9 of RFC 4880 for details).
You can find more details about Partitioned PGP here:
(GPG also saves the original file name in this packet, it is just not used when decrypting a file.)
So, it seems that this packet is always there and could be used to rename the file output. At least maybe if the resulting file is named "AttachmentX" ?
- State changed from started to fixed
Read the filename from the decrypted data if possible.