I will try to explain in details...

1) in get_folder_online() callback.  Get all the header of the messages that is on the 
server and do the following:

   for (...) {

      stream = camel_stream_mem_new_with_buffer(header, len);

      msg = camel_mime_message_new();
      if (camel_data_wrapper_construct_from_stream(CAMEL_DATA_WRAPPER(msg), stream) == 
-1) {
         camel_object_unref (CAMEL_OBJECT (msg));
         continue;
      } 

      minfo = camel_folder_summary_info_new_from_message(folder->summary, msg);

       if (flags & MESSAGE_SEEN)
          minfo->flags |= CAMEL_MESSAGE_SEEN;
        minfo->date_sent = header_decode_date(date, NULL);
        minfo->size = rfc822_size;

        camel_message_info_set_subject(minfo, subject);
        ...call other camel_message_info...() to set summary desc.


   }

2) in get_message() callback.  I get all the mime header of the parts that the user 
clicked on.  In this function I setup a wrapper for the callback to request which part 
to download.

3) write_to_stream() callback, I go fetch the part/section of the data to return back 
to Camel.

The data is actually being displayed.  All the attachments is being displayed 
correctly.  Just not the message header.

What I'm trying to figure out is where in Camel does it return the header information 
to be displayed?  How is the header getting overwritten from what I have supplied in 
get_folder_online()?  From I what I can see is that I have already gave the header to 
Camel but it's either being overridden with a different Camel header that Camel decide 
to use instead of mine.

Shawn

---------- Original Message ----------------------------------
From: Jeffrey Stedfast <[EMAIL PROTECTED]>
Date:  21 May 2002 14:53:42 -0400

>Depends on what you did I guess. This is a pretty vague question.
>
>Jeff
>
>On Tue, 2002-05-21 at 14:33, swalker wrote:
>> I'm having some weirdness that the e-mail header does not show in my plug-in.  What 
>I'm seeing is this:
>> 
>> Content-Type: TEXT/PLAIN
>> From: 
>> Date: 21 May 2002 13:21:40 -0500
>> Subject: No Subject
>> Message-Id: <[EMAIL PROTECTED]>
>> Mime-Version: 1.0
>> 
>> Why is Camel not displaying the header that I have already provided during the 
>get_folder_online() callback?  I had all of the messages displaying just fine until 
>now. 
>> 
>> 
>> 
>> 
>> ________________________________________________________________
>> Sent via the WebMail system at isp2k.com
>> 
>> 
>>  
>>                    
>> 
>> _______________________________________________
>> evolution-hackers maillist  -  [EMAIL PROTECTED]
>http://lists.ximian.com/mailman/listinfo/evolution-hackers
>-- 
>Jeffrey Stedfast
>Evolution Hacker - Ximian, Inc.
>[EMAIL PROTECTED]  - www.ximian.com
>
>
 




________________________________________________________________
Sent via the WebMail system at isp2k.com


 
                   

_______________________________________________
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers

Reply via email to