Page MenuHome GnuPG

GpgOl: Unable to save an encrypted message to disk [gpg4win 3.1.5]
Closed, ResolvedPublic

Description

I'm unable to save encrypted mails to disk.

Steps to reproduce:

  • Open encrypted mail (either in preview pane or in new window)
  • Select File / Save As

Expected Result:

  • Mail is saved to disk (in decrypted state)

Actual Result:

  • Nothing happens, no file is created, no error message is shown

Might be related to T4241.

Gpg4Win 3.1.5, MSO 16.0.11029.20045 32 Bit

Details

Version
Gpg4Win 3.1.5, MSO 16.0.11029.20045 32 Bit

Revisions and Commits

Event Timeline

che created this object in space S1 Public.
aheinecke triaged this task as Normal priority.
aheinecke added a project: gpg4win.
aheinecke added a subscriber: aheinecke.

It is a bit related to T4241 indeed. As we have not yet seen a way to determine if the user actually triggered "save as" or if outlook just wants to save the modifications we can't decide when we should pass the save event and when we should block it.

I think the solution here could be to add an extra option in the context menu to permanently decrypt a message or explicitly offer a save as (decrypted).

It is possible to save an encrypted message though, you can use drag & drop to drag it to a folder or save it when it is not selected (the decrypted content is not visible).

Hi Andre,

thanks for your help!

Ok, so saving a decrypted message is not possible at the moment, right?

In my opinion, both mentioned options would be quite helpful.
I would probably prefer a new "Save as decrypted" action, because this would require one click less (Just "Save as decrypted" instead of "Decrypt permanently" & "Save as") and the mails on the IMAP server would still be encrypted.

(I know some people who save all mails of a project in a specific file folder on their server. This folder should be accessible by different people, i.e. saving the encrypted mail does not really help...)

In T4318#121604, @che wrote:

Ok, so saving a decrypted message is not possible at the moment, right?

Right.

In my opinion, both mentioned options would be quite helpful.
I would probably prefer a new "Save as decrypted" action, because this would require one click less (Just "Save as decrypted" instead of "Decrypt permanently" & "Save as") and the mails on the IMAP server would still be encrypted.

Save as decrypted is harder to implement (We would need a file dialog etc.) and Decrypt Permanently seems more versatile to me. E.g. some people are not concerned about decrypted mails in their IMAP as they only need transport encryption with OpenPGP or they want to store the mails in a local folder in outlook to have them full text searchable.

Save as decrypted could be a next step but I also don't want to offer too many Options in the GUI to avoid clutter. A power user could probably use keyboard shortcuts to trigger "decrypt permanently" and save as right after through shortcuts.
I'll have a go at this.

(I know some people who save all mails of a project in a specific file folder on their server. This folder should be accessible by different people, i.e. saving the encrypted mail does not really help...)

Yes.

Hi,

You can save as text or html decrypted. And apart save the attachment. You can save as .msg in encrypted form dragging and dropping the message row to the desktop. In Outlook smime native mode you can save as .msg in encrypted mode (could be the key cache decrypts "on the fly"). This option seems disabled in gpgol.

But I agree with you that same form of saving unencrypted is necessary because the key can expire or be unavailable, so you probably need to archive in unencrypted form once the message hasarrived in secure transport.

Also an option of "delete private key" could also be usefull in Kleopatra. Now, when you delete the key or the certificate, the private key remains in disk.

aheinecke changed the task status from Open to Testing.Jun 7 2019, 3:36 PM

File->Save As now works for crypto mails. It saves the encrypted message.

Has been released and confirmed to be working.