On 6/4/07, Thomas Bruederli <[EMAIL PROTECTED]> wrote:
2007/6/3, till <[EMAIL PROTECTED]>:
> On 6/3/07, till <[EMAIL PROTECTED]> wrote:
> >
> > The subject for example says: "Re:" - to is completely empty. The top
> > of the message body say: "On ,  wrote:".
>
> (Sorry for all the noise on the list today.)
>
> But here is the fix/outcome:
> The functions which render the form expect $MESSAGE['subject'] for
> example, but looking at $MESSAGE, the structure inside the
> array/object is nested and looks like
> $MESSAGE['structure']->headers['subject']

According to these lines from program/steps/mail/compose.inc

  $MESSAGE['headers'] = &$IMAP->get_headers($msg_uid);
  $MESSAGE['structure'] = &$IMAP->get_structure($msg_uid);
  $MESSAGE['subject'] = $IMAP->decode_header($MESSAGE['headers']->subject);
  $MESSAGE['parts'] = $IMAP->get_mime_numbers($MESSAGE['structure']);

The subject is copied from the message headers. If the message is
displayed correctly then this should also fetch the message headers
since the same method is used.
>
> I have no idea why that is the case here and apparently not for anyone else.
>
> This shouldn't depend on the MTA though because Mail_Mime is supposed
> to provide a unified API.

This is not correct. RoundCube now uses the message structure provided
by the IMAP server and does not rely on Mail_Mime anymore. Fetching
the message structure instead of the whole message (with large
attachments) is much more efficient.

Yeah, I am not sure if there is a glitch when all the assigning takes
place. At least in my case the assigning doesn't work. I am not sure
if it's due to the reference, globals and/or race conditions. No idea,
but I'll look into this today.


Reply via email to