[Evolution-users] Unencrypted (complete) copy of an S/MIME encrpypted email
Matthias Kuntze
Matthias at KuntzeM.de
Fri Dec 19 21:39:53 UTC 2025
Am Freitag, dem 19.12.2025 um 12:33 +0000 schrieb ampersand_92 via
evolution-users:
> In the background of my use case there is a change from Windows- to
> Linux-clients going on and I had hoped to find something that is a
> bit easier to handle (to increase acceptance also by the non-
> technical staff).
It is hard for me to understand, what you mean with "easier". That was
the reason why I showed the GUI activities. If you prefer the "openssl"
suggestion than you can use/modify the following script. The created
.mbox file can be imported (or --view) with evolution.
#!/bin/bash
# $1 - encrypted email else .eml or .mbox file
# $2 - Certificate (pfx or p12 file)
eml=${1:-x.eml}
mbox=${eml%.*}.mbox
cert=${2:-myCertificate.p12}
tags=( "From " "Date:" "From:" "To:" "Subject:" "MIME-Version:" )
# Certificate: public and private parts available?
[ -e crt.pem ] || openssl pkcs12 -in $cert -out crt.pem -nodes
[ -e crt.key ] || openssl pkcs12 -in $cert -nocerts -out crt.key -nodes
[ -e "$mbox" ] && rm "$mbox"
for tag in "${tags[@]}"; do grep "$tag" "$eml" >>"$mbox"; done
openssl smime -decrypt -in "$eml" -recip crt.pem -inkey crt.key \
>>"$mbox"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5910 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/evolution-users/attachments/20251219/c5312906/attachment.p7s>
More information about the evolution-users
mailing list