nextcloud / nextcloud/mail

S/MIME encrypted emails in Sent folder not being decrypted

Open
#12,670 1 comment 0 reactions 1 assignee View on GitHub

@kesselb is already working on this.

Since Mar 30, 2026.

1. to develop bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

SmimeCertificateMapper.php.patch

SmimeService.php.patch

Steps to reproduce
  1. Configure your Nextcloud Mail account for S/MIME encrypted mails by installing your private/public key pair (certificate) as well as a public key (certificate) of your recipient and linking your private key to your email account
  2. Send an encrypted email from Nextcloud Mail
  3. Select your 'Sent' folder and open an encrypted email
  4. You should encounter an error ("Not found")
Expected behavior

Sent encrypted emails should be decrypted to enable viewing by the sender/owner.

Actual behavior

Sent encrypted emails are not being decrypted. An error message is displayed where the message body should appear.

Mail app version

5.6.13

Nextcloud version

32.0.7

Mailserver or service

on premise

Operating system

Debian 12

PHP engine version

PHP 8.2

Nextcloud memory caching

No response

Web server

Apache (supported)

Database

MySQL

Additional info

Suggested solution: see attached

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.