hey,
On 01/09/2009 Thomas Bruederli wrote:
Jonas Meurer wrote:
On 29/08/2009 Jonas Meurer wrote:
the PGP plugin needs access to the raw content of mime parts. verify_mime() requires the _exact_ raw content, not a stripped down, parsed or otherwise modified version. this is not possible yet. $this->get_part_content($mime_id) from rcube_message.php, and even iil_C_HandlePartBody($this->conn, $this->mailbox, $uid, true, $part) from rcube_imap.php give back stripped down versions of the content. i wonder whether it's possible to access the raw content at all.
looked into that issue today and finally discovered that the way roundcube mime parsing code doesn't support to fetch raw content of mime parts.
Sure it does. There's also a step that displays the raw message code in the browser. You can use $RCMAIL->imap->get_raw_body($uid) to fetch the message source.
yes, and i mentioned that later in my mail. but that returns the whole message along with headers. what is needed to verify a signed message is rather something like get_raw_part($uid, $part).
For decoding the message structure without the support of the IMAP server we do not have a solution yet but there are some other problems that would require such a feature. After the 0.3 release I'll have a look into that.
i'll try to write a patch for that as well.
greetings, jonas
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/V7/pBTUah6n/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/