View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004201SOGoWeb Mailpublic2017-06-17 19:502017-10-09 03:56
Assigned Toludovic 
PlatformLinuxOSDebianOS Version9 (Stretch)
Product Version3.2.6 
Target Version3.2.10Fixed in Version3.2.10 
Summary0004201: Mail with Content-Type multipart/signed (RFC 1847) is not displayed
DescriptionEmail with MIME Content-Type multipart/signed is not displayed within SOGo at all, they're rendered as a blank message.

These emails used to be displayed with SOGo 2.2.17.
Steps To ReproduceOpen a PGP/MIME signed email (RFC 1847)
Additional InformationToday I upgraded my SOGo server's OS from Debian 8 (Jessie) to Debian 9 (Stretch) which coincidentally upgraded SOGo from 2.2.17 to 3.2.6. Every message in my Sent folder renders blank. A large amount of mail received from Debian Mailing Lists (see attachment) are rendered blank. Other users of my SOGo installation see blank mail for every mail sent by me.
TagsNo tags attached.
Attached Files? file icon multipart-signed-email [^] (7,230 bytes) 2017-06-17 19:50 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
has duplicate 0004307closedludovic Cannot view gpg signed emails 

-  Notes
User avatar (0011985)
Christian Mack (developer)
2017-06-19 04:13

Are there smime.p7m attachments?
gturner (reporter)
2017-06-19 12:44

Hi Christian, to answer your question, there are no smime.p7m attachments.

The first MIME part is:

  Content-Type: text/plain; charset=us-ascii
  Content-Disposition: inline
  Content-Transfer-Encoding: quoted-printable

The second MIME part is:

  Content-Type: application/pgp-signature; name="signature.asc"

I'm used to SOGo (older 2.x) and many other mail clients displaying that second part as a download. Clients like Evolution or Thunderbird with Enigmail instead verify the PGP signature. I'm not expecting SOGo to do any PGP operations. There's regression in SOGo 3 that it doesn't render the first MIME part at all (text/plain, not shown).
jordi (reporter)
2017-06-27 08:12


The Debian version of SOGo is compiled against GnuTLS instead of OpenSSL due to licensing reasons. Unfortunately, there is a codepath that is not ported to GnuTLS and apparently causes this regression.

Ludovic, see the HAVE_OPENSSL ifdefs in UI/MailPartViewers/UIxMailPartSignedViewer.m.

I've been wanting to contribute a fix from our end, but have not been able.
gturner (reporter)
2017-06-27 12:21

That's interesting jordi, I attempted to verify by rebuilding Debian's package with libssl-dev (OpenSSL 1.1), however at runtime it broke SOGo's ability to connect to IMAPS. So I made another attempt at rebuilding with libssl-1.0-dev (OpenSSL 1.0), but this is impractical since another dependency, liblasso3-dev, depends on OpenSSL 1.1. Damn this OpenSSL API break!
User avatar (0012029)
ludovic (administrator)
2017-07-04 10:29

That is correct - 3 methods from UI/MailPartViewers/UIxMailPartSignedViewer.m need to be ported to Gnu TLS.

- Related Changesets
sogo: master 22c078ee
Timestamp: 2017-07-04 11:00:06
Author: ludovic
Details ] Diff ]
(fix) enable S/MIME even when using GNU TLS (fixes 0004201)
mod - UI/MailPartViewers/GNUmakefile.preamble Diff ] File ]
mod - UI/MailPartViewers/UIxMailPartSignedViewer.m Diff ] File ]
sogo: v2 8d1b02d5
Timestamp: 2017-07-04 11:00:06
Author: ludovic
Details ] Diff ]
(fix) enable S/MIME even when using GNU TLS (fixes 0004201)

mod - UI/MailPartViewers/GNUmakefile.preamble Diff ] File ]
mod - UI/MailPartViewers/UIxMailPartSignedViewer.m Diff ] File ]

- Issue History
Date Modified Username Field Change
2017-06-17 19:50 gturner New Issue
2017-06-17 19:50 gturner File Added: multipart-signed-email
2017-06-19 04:13 Christian Mack Note Added: 0011985
2017-06-19 12:44 gturner Note Added: 0011991
2017-06-27 07:48 ludovic Severity major => minor
2017-06-27 07:49 ludovic Assigned To => ludovic
2017-06-27 07:49 ludovic Status new => assigned
2017-06-27 07:49 ludovic Target Version => 3.2.10
2017-06-27 08:12 jordi Note Added: 0012007
2017-06-27 12:21 gturner Note Added: 0012009
2017-07-04 10:29 ludovic Note Added: 0012029
2017-07-04 11:01 ludovic Changeset attached => sogo master 22c078ee
2017-07-04 11:01 ludovic Resolution open => fixed
2017-07-04 11:02 ludovic Changeset attached => sogo v2 8d1b02d5
2017-07-04 11:03 ludovic Status assigned => resolved
2017-07-04 11:03 ludovic Fixed in Version => 3.2.10
2017-10-09 03:56 Christian Mack Relationship added has duplicate 0004307

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker