[RCD] GnuPG/PGP plugin for roundcube

Jonas Meurer jonas at freesources.org
Mon Aug 10 02:55:45 CEST 2009

On 07/08/2009 A.L.E.C wrote:
> Jonas Meurer wrote:
> > at the very start of parse_structure(), parse the message/mime_part for
> > encrypted/signed content (both mime and inline), if appropriative verify
> > signature or decrypt encrypted data, and send the result back to a new
> > instance of parse_structure() recursively. afterwards stop the
> > functions.
> Just a thought. Attach a few samples of simple messages, crypted
> (with decrypted version) and signed, to the Wiki page, please.
> This would be simpler to understand without reading RFCs and installing
> encryption software.

sure, just did that. please note that i always uploaded the same
messages twice: one version signed and one encrypted. that way I didn't
have to upload the decrypted message as well, as it's exactly the same
content as the same message.

particularly interesting are the wrapped multipart messages, with
attachments and with several mails wrapped inside:


if nobody objects, i'll start to implement the code in parse_structure()
in rcube_message.php:

function parse_structure():
  if is_encrypted(msg_part):
    dec_msg_part = exec_hook(decrypt, ...)
  if is_signed(msg_part):
    verify = exec_hook(verify, ...)


 --- 8< --- detachments --- 8< ---
 The following attachments have been detached and are available for viewing.
 Only click these links if you trust the sender, as well as this message.
 --- 8< --- detachments --- 8< ---

-------------- next part --------------
List info: http://lists.roundcube.net/dev/

More information about the Dev mailing list