djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.62k stars 391 forks source link

[mu4e bug] No encrypted flag for more Outlook S/MIME message types #2784

Closed Cerebus closed 2 weeks ago

Cerebus commented 3 weeks ago

Unlike #2745, this one is doesn't carry smime-type.

> mu find subject:"XXXX" -o json | jq '.[] | [.[":path"], .[":flags"]]'
[
  "/Users/xxxxxx/Maildir/INBOX/cur/1730987617.1304_1.xxxxxx,U=2477:2,RS",
  {
    "replied": "seen",
    "attach": "personal"
  }
]

Message content headers:

Content-Type: application/pkcs7-mime; name="smime.p7m"
Content-Disposition: attachment; filename="smime.p7m"
Content-Transfer-Encoding: base64
MIME-Version: 1.0

The attachment is:

> cat 1730987617.1304_1.xxxxxx,U=2477:2,RS | openssl smime -pk7out | openssl pkcs7 -print
PKCS7:
  type: pkcs7-envelopedData (1.2.840.113549.1.7.3)
  d.enveloped:
    version: 0

How to Reproduce Get someone on Outlook to send you S/MIME emails, I guess? I'm even sure which version b/c there's no MUA identifier in the headers. I think in this case it's Outlook/Mac but not sure.

And people wonder why MUA authors hate S/MIME. :(

Environment mu version 1.12.7 Emacs 29.4 macOS 14.7.1

Checklist

djcb commented 3 weeks ago

Can you please attach a message where this happens? Otherwise we can't do anything with this, thanks.

Cerebus commented 3 weeks ago

message.txt

djcb commented 2 weeks ago

Thanks... I'll put a work-around in place.