[dev] getBodyPart for S/MIME decryption

jnaegele at grierforensics.com jnaegele at grierforensics.com
Thu Mar 23 18:40:48 UTC 2017


Hi folks,

I'm unable to decrypt S/MIME encrypted messages using a new hosted  
IMAP server with Horde 5.2.14 and IMP 6.2.18. I've narrowed down the  
issue to my IMAP server not responding at all to the  
Horde_Imap_Client_Fetch_Query requesting the headers and body in  
imp/lib/Contents.php, getBodyPart(). The Mime ID is just '1' so it's  
not using rfc822. I don't get a response when "$query->mimeHeader($id,  
...)" is set. Because I don't get any response, the full message text  
sent to openssl_pkcs7_decrypt is an empty string, hence the inability  
to decrypt.

This is possibly an issue with my IMAP server, however neither Outlook  
nor Thunderbird have any issue decrypting these messages, and my IMAP  
provider is widely used. Is this something I can potentially fix on  
the IMP side?

Thanks,

Joe Naegele
Grier Forensics



More information about the dev mailing list