When I attached S/MIME signing/encryption to RoundCube, I have found that openssl forms the text of the letter, not quite ready to be sent. Some important headers aren't included in this file. Therefore I had to add processing of the letter after openssl.

Best regards,

   Vladimir Gorpenko

Kyle Francis писал 2016-05-19 02:31:

So I'm trying to wrap up implementing S/MIME support in the Enigma plugin. I've got cert import (from .p12) implemented, as well as verifying and decrypting working. Certs show up in the Settings menu as well with basic info.

For signing and encrypting openssl_pkcs7_sign/encrypt return fully encoded text files that are ready to be sent by a mail agent, whereas the message_ready hook is looking for a Mail_mime object. 

What would be the recommended course, either parse the file to create a Mail_mime object, or would there be a way to pass along the fully mail agent ready text from opening_pkcs7?

Kyle


_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev