Sorry, it was a mistake, take every thing as bytes(ignore DOT(.)).

I tested this with mtest program shipped with c-client lib. This also
reports truncated body buffer if using mail_fetchtext(I am not
remembering the Command) while mail_fetch_message returned full mail
(including header)

Regards,
Manoj Marathayil



On Wed, Nov 12, 2008 at 10:19 PM, Mark Crispin <[EMAIL PROTECTED]> wrote:
>
>
>
>  What you describe does not make sense.  The return data from
> mail_fetch_message() is formed from a concatenation of the
> return data of mail_fetch_header() and mail_fetch_text().
>
> The c-client library routines have been extensively testedand used for over 
> 20 years.  They return the correct values.
> If you see incorrect values in your application that callsc-client, then 
> either there is a bug in your application, abug in the IMAP server, or a bug 
> in both.
> It is very likely that there is a bug in both your applicationand the IMAP 
> server.  The GMail IMAP server has many bugs,including bugs that report 
> incorrect sizes.
> However, the overall level of confusion in your message suggeststhat there 
> are bugs in your application as well.
> Finally, I have no idea what you mean by "b/w". It is also veryconfusing that 
> you report sizes as KB with three-digit fractions.Apparently, by "340.836KB", 
> you intend 340,836 bytes and not349,016 bytes (which is the actual value of 
> "340.836KB").  Foryour information, a KB is 1024 bytes, not 1000 bytes.
> Please use plain English and conventional forms of writingnumbers.
> -- Mark --
>
> http://panda.com/mrc
> Democracy is two wolves and a sheep deciding what to eat for lunch.
> Liberty is a well-armed sheep contesting the vote.
>
>
> Date: Wed, 12 Nov 2008 12:34:35 +0530
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: [Imap-uw] Issue with Content-type: message/rfc822 ?
>
> I am trying to read a mail containing a mime part as "message/rfc822" from 
> Gmail IMAP server.
>
> total size of the mail is (340.836 KB)
>
> mail_fetchheader - returns header of size as 1.284 KB
>                            mail_fetchheader(vImapStream, msgno);
>
>
> mail_fetch_text - returns the content text as 7.019 KB(which is partial, it 
> is breaking in b/w) -  I expected this to report 339.552
>                         mail_fetch_text(vImapStream, msgno, NIL, &len, NIL);
>
>
> mail_fetch_message - returns the full buffer with correct length(340.836 KB).
>                                 mail_fetch_message(vImapStream, msgno, &len, 
> NIL);
>
>
> Why mail_fetch_text read reports wrong values?
>
>
> As well as I noticed mail_fetchbody(vImapStream, msgno, pPartName, &len)  
> reports wrong values(partial buffer) if the partnumber points to a mime part 
> with "message/rfc822" content type.
>
> Thanks  in advance,
>
> Manoj
>
> _________________________________________________________________
> Get 5 GB of storage with Windows Live Hotmail.
> http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to