#2079 ✓bluesky
Lars

attachments on message with multiple encryption layers remain encrypted

Reported by Lars | August 22nd, 2018 @ 10:38 AM

I have a message that has been encrypted multiple times (by mistake, in my opinion, but that's beside the point). Is it intentional that MailMate does not decrypt those asc files, but rather displays them as attachments? All included message plaintexts decrypt fine on the command line using "gpg --allow-multiple-messages".

Comments and changes to this ticket

  • benny

    benny August 23rd, 2018 @ 02:19 PM

    It's not intentional. MailMate decrypts anything which uses the OpenPGP/MIME format (and some variations of inlined OpenPGP). I believe MailMate would just see your example files as attachments.

    Do you know how this happened? Do you get them often?

  • benny

    benny August 24th, 2018 @ 08:00 AM

    • State changed from “new” to “bluesky”

    @Lars: Thanks for the explanation. Since it's not a general problem then I'm going to postpone doing anything about it.

    The reason MailMate doesn't decrypt/inline is because it doesn't recognize these attachments at all. A regular OpenPGP/MIME email has a very specific structure and this does not involve a .asc file. It's true that such a file could be an OpenPGP armored file, but it could also be other types of files. It would be a new feature in MailMate if it auto-detected when these files appear.

    You might want to try the --allow-multiple-messages setting in the GPG configuration files if that somehow works with MailMate (I'm not sure what the output would be and if MailMate can handle that).

  • benny

    benny August 29th, 2018 @ 02:59 PM

    You can enable debug output like this:

    defaults write com.freron.MailMate MmDebugSecurity -bool YES
    

    Then launch from a Terminal window like this:

    /Applications/MailMate.app/Contents/MacOS/MailMate
    

    You should then be able to see how MailMate calls gpg2. That might make it easer to track down why this doesn't work.

  • benny

    benny September 7th, 2018 @ 09:08 PM

    As you have noted, this is hardcoded and I'm hesitant with respect to not setting --openpgp. Instead I've introduced a preference to change it:

    defaults write com.freron.MailMate MmOpenGPGComplianceString -string "rfc2440"
    

    It defaults to openpgp and is used for the following command line argument:

    --compliance
    

    This is going to be part of the next update (r5523+).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages