hello,
i already wrote about developing a crypt/gpg plugin for roundcube to this list in the past. in my eyes several issues need to be adressed in roundcube core before it's possible to implement the plugin itself.
i'll try to list all showstoppers that i discovered so far ...
the plugin needs access to the raw message body in order to verify signatures
inline pgp signed/encrypted messages have to be detected and handed over to a hook in function parse_structure() at rcube_messsage.php
verifying signed messages and decrypting encrypted messages needs to be done by seperate hooks: message_part_signed and message_part_encrypted
i tried to adress these with the attached patch. please review and comment on it. it would be awesome if it could be integrated upstream later.
unfortunately there s one big issue left which my patch doesn't adress yet. the reason is simply that i don't have a clue about what to do about it. i would highly appreciate help from roundcube core developers here :-)
read a text string (i.e. a decrypted message) into a mime parser and return mime structure and mime parts. mime parsing is closely combined with the IMAP code in roundcube. the mime parsing is done by the IMAP server and roundcube fetches structure and parts from it. so far there's no way to process a text string with mime parsing code. unfortunately that's required for processing encrypted messages, as the decrypted, possibly mime-formated message is only available as text string.
i don't know how it's done for composed/sent messages, but i guess that their structure needs to be parsed as well in order to upload them to a send/drafts/... folder.
greetings, jonas
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/YT/kce4cTdE/rcube_message.php.diff http://detached.gigo.com/rc/YT/kce4cTdE/signature.asc Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/dev/