[RCD] preliminary changes for crypt plugin
Maximilien Cuony [The_Glu]
maximilien at theglu.org
Fri Oct 9 11:04:24 CEST 2009
> As someone said, do we need to deal with inline signed/encrypted
> messages? Maybe it would be simpler to start with only MIME messages
> handling?
Some people are using it because they can't send mail in the right format and
just clearsign they messages, I think Roundube should support everyone ;)
Regards,
On Friday 09 October 2009, "A.L.E.C" <alec at alec.pl> wrote :
> Jonas Meurer wrote:
> >> 1. Not complete and not working get_raw_body_content()
> >
> > can you elaborate on that? in my tests get_raw_body_content() indeed
> > worked as expected. it results the whole body content, without any
> > charset or mime parsing modifications applied.
>
> Let's see:
>
> public function get_raw_body_content()
> {
> return $this->imap->get_message_part($this->uid, $mime_id, 'TEXT',
> NULL, $fp);
> }
>
> Ok, maybe it's working, but you should call get_message_part in this way:
>
> $this->imap->get_message_part($this->uid);
>
> Now, for performance, maybe it's possible to use 3rd argument of this
> function? Also if we call it with only one argument, do we need this
> get_raw_body_content wrapper?
>
> >> 2. You're fetching text message body twice for checking if inline
> >> message/part is signed/encrypted. This is of course not good for
> >> performance, you should store fetched body in memory for further use
> >> (e.g. by extending get_part_content function). It will be used probably
> >> once again in plugin and again for message displaying.
> >
> > you mean that get_part_content should store the body content in
> > part->body in case it's obligated to do so?
>
> Something like that. Or create rcube_message::cache array and store
> fetched part bodies by uid and mime_id in it. This will probably require
> checking for allowed memory size.
>
> As someone said, do we need to deal with inline signed/encrypted
> messages? Maybe it would be simpler to start with only MIME messages
> handling?
>
--
Maximilien Cuony [The_Glu]
http://theglu.org
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Bt/bN2NGnQY/signature.asc
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