Repository navigation
feat(compose): sign outgoing mail with S/MIME through gpgsm (#478) - #705
Closed
adriadam10 wants to merge 1 commit into
Closed
adriadam10 wants to merge 1 commit into
adriadam10 wants to merge 1 commit into
Conversation
) A per-account switch, smime_sign, signs every message the account sends with the certificate gpgsm holds for the From address, or for the account's address when an alias has none. The body goes out as multipart/signed with an smime.p7s part, reusing the PGP/MIME layout from hyprlab#666. Mail signed or encrypted with OpenPGP, and drafts, are left alone. Co-Authored-By: Claude <noreply@anthropic.com>
Owner
|
Awesome work, thank you for this PR! It's been merged and will be in the next beta build for testing. Please proceed with the rest you mentioned that weren't in this PR so we can have a complete solution |
Owner
|
Agentic reply: 1.50.0-beta.2 is in the repo now. If you've installed Hylki beta as a Flatpak, running flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakrefAppImage, Debian and RPM betas: See Beta channel for update details. |
hyprlab
added a commit
that referenced
this pull request
Nov 24, 2026
lancelee25's translation, attached to #155, merged with the current template: every string but the #701 shared mailbox, #702 hover action and #705 S/MIME ones. Plural forms set to Chinese's single form (nplurals=1), keeping the plural text of each entry. Also the credits. Co-Authored-By: lancelee25 <42861323+lancelee25@users.noreply.github.com>
hyprlab
added a commit
that referenced
this pull request
Nov 24, 2026
f4646's translation merged with the current template: every string but the #705 S/MIME and #708 Duck Address ones. Fixed at landing: Left worded like Right in the same dropdown (Solda), and the today words cut to bugün, since a single "bu" would have dated any message with "this" in it. Also the Turkish label for the GNOME Files entry and the credits. Co-Authored-By: f4646 <245043423+f4646@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First slice of #478: signing outgoing mail with S/MIME, through
gpgsm, the S/MIME half of the GnuPG that OpenPGP already uses. No new crates.What it does
smime_sign = trueinaccounts.toml). With it on, every message the account sends is signed with the certificate gpgsm has for the From address, or for the account's address when an alias has none.multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256with ansmime.p7spart. It reusessigned_multipartfrom the PGP/MIME code (now taking the protocol), so it keeps the PGP signature fails when using exchange mail server #666 layout that survives Exchange's rewrite.sent_body_previewnever calls gpgsm.Not in this PR: reading or verifying incoming S/MIME, encryption, a per-message toggle in the composer, or certificate management in Settings. Each of these can come later if this shape suits you.
Tested
smime_mime::tests::signs_into_multipart_signed_that_verifiescreates a throwaway keybox holding a self-signed certificate, signs from the account address and from an alias, and checks thatgpgsm --verifyreports GOODSIG over the exact bytes of the signed part. It skips when gpgsm is missing.signed_multipart.openssl smime -verifyagainst the system CA store, both as built and after sending it through a real SMTP server and fetching it back over IMAP.~/.gnupgand gpg-agent socket permissions are already there for OpenPGP; I have not checked whether the GNOME runtime's GnuPG includesgpgsm.Docs: DOCUMENTATION.md (setup, including repacking a Thunderbird or Firefox
.p12that gpgsm 2.4 cannot parse), FEATURES.md and CHANGELOG.md.