unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Workaround for Exchange-corrupted PGP/Mime structure
@ 2019-11-20 16:36 Carl Worth
  2019-11-20 18:41 ` Ralph Seichter
  0 siblings, 1 reply; 8+ messages in thread
From: Carl Worth @ 2019-11-20 16:36 UTC (permalink / raw)
  To: Notmuch List

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

I recently received a GPG-encrypted message that notmuch was not able to
handle transparently as I'm used to. (That is, instead of decrypting the
message and verifying the signature inside, etc.—instead I was just
presented with an attachment that contained the encrypted message.)

After some poking around, it appears that the problem is that the
message was sent through Microsoft Exchange which corrupts PGP/mime
structure by changing the outer content-type from "multipart/encrypted"
to "multipart/mixed".

I've verified this bug by sending mail from notmuch through Exchange as
the MTA and it indeed does corrupt the mail in exactly this fashion.

It looks like this bug in Exchange is known[1] and there's evidence of
other MUAs working around the bug[2].

Have other notmuch users encountered this problem?

What would anyone think about a workaround where notmuch-emacs could
grub around inside a "multipart/mixed" structure looking for child parts
that look like they really should have been a part of a
"multipart/encrypted" container?

-Carl

[1] https://social.technet.microsoft.com/Forums/en-US/c5059734-5031-4d82-96eb-c74fe60b5e9e/quotthis-is-a-broken-pgpmime-message-from-msexchangequot

[2] https://gitlab.com/mikecardwell/gpgit/blob/master/gpgit.pl#L108
which also refers to Enigmail having a workaround for thi.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-21  5:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-20 16:36 Workaround for Exchange-corrupted PGP/Mime structure Carl Worth
2019-11-20 18:41 ` Ralph Seichter
2019-11-20 19:19   ` David Bremner
2019-11-20 20:55     ` Carl Worth
2019-11-20 21:19       ` Carl Worth
2019-11-20 22:10         ` Brian Sniffen
2019-11-21  3:06           ` Daniel Kahn Gillmor
2019-11-21  2:24         ` Daniel Kahn Gillmor

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).