File extensions for Mailviewer saving
Open, HighPublic

Assigned To
None
Authored By
• aheinecke
Jan 15 2024, 9:25 AM

Description

So a customer tested the current mailviewer and they would like the following changes regarding file save as / save as decrypted:

  • Decrypted mails should default to .eml file extensions.
    • Alternative offers should include .mime and .mbox
  • Encrypted mails should default to .mime
    • Alternative offers should include .p7m (for S/MIME only)
    • Alternative offers should include .eml and .mbox

As a filename suggestion the subject should be used if this creates a valid filename. If not either a sanitized subject or no suggestion.

Event Timeline

• aheinecke created this task.

The background for this is that .mime we can treat as as a custom extension for us since no one else that I know uses it but it is a registered extension.

.eml we usually don't take over so users can save their decrypted mails and then open it with Outlook. .asc and .p7m are too general.

• werner moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 30 2024, 3:28 PM
CarlSchwan moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.May 30 2024, 4:59 PM

I guess the status should be set to Testing?

CarlSchwan changed the task status from Open to Testing.Jun 3 2024, 9:46 AM
• ebo changed the task status from Testing to Open.Feb 27 2025, 1:50 PM
• ebo moved this task from QA to Backlog on the vsd33 board.
• ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
• ebo added a subscriber: • ebo.

Carl found some issue with this himself.

This should now work on master, I will write here once this is in the next beta

• ebo changed the task status from Open to Testing.Jun 23 2025, 4:52 PM
• ebo removed projects: Restricted Project, vsd33.

Concluded after talking with Carl that there is no need to backport this any more. Therefore retagging this for gpd5x

• ebo moved this task from Backlog to QA on the gpd5x board.
timegrid changed the task status from Testing to Open.EditedNov 28 2025, 12:53 PM
timegrid removed CarlSchwan as the assignee of this task.
timegrid moved this task from QA to WIP on the gpd5x board.
timegrid added subscribers: CarlSchwan, timegrid.

(removed unfinished text)

Tested on gpg4win-5.0.0-beta413 @ win11.

Done:

  • openpgp encrypted mail
    • Save encrypted: filetypes offered are correct, filename is .mime
    • Save decrypted: filetypes offered are correct, filename and type selection field is .eml
  • smime encrypted mail
    • Save encrypted: filename is .mime, type selection includes .p7m
    • Save decrypted: filetypes offered are correct, filename and type selection field is .eml

Issues found:

  • openpgp encrypted mail
    • Save encrypted: filename ends in .mime by default, but .eml is selected in the file type selection field
  • smime encrypted mail
    • Save encrypted: filename ends in .mime by default, but .p7m is selected in the file type selection field
    • File types don't include .mime
timegrid mentioned this in Unknown Object (Maniphest Task).Dec 1 2025, 9:11 AM
timegrid raised the priority of this task from Normal to High.Dec 12 2025, 11:11 AM

I can't reproduce your problems. Can you get me the exact test files you used?

Sure:


Notes:

  • "Save encrypted" is only "Save" in the UI.
  • This is still reproducible in gpg4win-5.0.0-beta476 @ win11