[RCD] RC 1.2.1 - Enigma signed e-mail validation failure

sgironella at schema31.it sgironella at schema31.it
Thu Jul 28 10:54:38 CEST 2016


Enabled IMAP and SMTP debug (see attachments) and tested against a
DBMail internal mail server and an external one (GMail to simplify test
repeatability). 

Attached files are related to the GMail session. 

As you can see, IMAP response differs on main mime part headers
structure, so i think that's the reason for sign verification failure. 

Any idea on how to fix this? 

Thanks! 

Stefano 

SMTP log 

....... cut ....... 

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_12a667e67cfa1dc2752a3a26a0315da3
CONTENT-TYPE: MULTIPART/MIXED;
 BOUNDARY="=_6252574EB3EF7A89798CDB7924177AF2" 

....... cut ....... 

IMAP log (response) 

....... cut ....... 

[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] C: A0008 UID FETCH 9460
(BODY.PEEK[1.MIME])
[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] S: * 31 FETCH (UID 9460
BODY[1.MIME] {80}
[28-JUL-2016 10:23:17 +0200]: <ML905LHG> [17EE] S: CONTENT-TYPE:
MULTIPART/MIXED; BOUNDARY="=_6252574EB3EF7A89798CDB7924177AF2"
[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] S: 
[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] S: )
[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] S: A0008 OK Success
[28-Jul-2016 10:23:17 +0200]: <ml905lhg> [17EE] C: A0009 UID FETCH 9460
(BODY.PEEK[1]) 

....... cut ....... 

Parsed IMAP response 

....... cut ....... 

CONTENT-TYPE: MULTIPART/MIXED;
BOUNDARY="=_6252574EB3EF7A89798CDB7924177AF2" 

....... cut ....... 

Il 2016-07-28 08:34 A.L.E.C ha scritto:

> On 07/27/2016 04:11 PM, sgironella at schema31.it wrote: 
> 
>> I've noticed that the signed message has an extra newline between main
>> headers and body (take a look at the highlited rows) so I thing that's
>> why sign verification fails (content doesn't match with original message).
> 
> Works for me, but I have an idea that it could be some IMAP response
> parsing issue or IMAP server issue. Could you provide imap_debug log for
> the moment when you open the message?
> 
> And this is the relevant part of the code, in case you'd like to work on
> this by yourself.
> 
> https://github.com/roundcube/roundcubemail/blob/release-1.2/plugins/enigma/lib/enigma_engine.php#L1185-L1187
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20160728/8ab05ce8/attachment-0005.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20160728/8ab05ce8/attachment-0006.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20160728/8ab05ce8/attachment-0007.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20160728/8ab05ce8/attachment-0008.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20160728/8ab05ce8/attachment-0009.html>


More information about the dev mailing list