Re: Patch: fix for bodystructure support in gmail imap



El mar, 12-01-2010 a las 14:39 +0100, Sergio Villar Senin escribió:
> José Dapena Paz escribiu:
> > 	Hi,
> > 
> > 	This fix is for some problems in assignment of mime part indexes in
> > Gmail IMAP.
> 
> In your code you're assuming that the ".HEADER" file is created with
> size 0 when trying to fetch the headers. Is that true? I ask this
> because in r4118 I committed code that unlinks the files created by the
> fetch operation when the fetch fails (otherwise the code will think that
> the mime part was fetched and won't try to fetch it later)

	Mmmm. Isn't it still that if server returns NIL (different from not
answering or returning an error) as body part, it will store a 0 bytes
file?,

> 
> Br
> 
> > 	An example of the issue is this:
> > 
> > 	(text/plain, message/rfc822-multipart/alternative (text/plain, text/html))
> > 
> > The expected body part indexes for this in IMAP are:
> > 1 -> text/plain
> > 2 -> message/rfc822 full content
> > 2.HEADER -> headers of the message
> > 2.TEXT -> multipart/alternative full contents
> > 2.1 embedded message text/plain
> > 2.2 embedded message text/html
> > 
> > But I have this structure accessing to this message in gmail imap:
> > 
> > 1 -> text/plain
> > 2 -> message/rfc822 full content
> > 2.1 -> multipart/alternative full contents
> > 2.1.1 -> embedded message text/plain
> > 2.1.2 -> embedded message text/html
> > 
> > This fix adds a workaround for this case.
> > 
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > tinymail-devel-list mailing list
> > tinymail-devel-list gnome org
> > http://mail.gnome.org/mailman/listinfo/tinymail-devel-list
> 
> _______________________________________________
> tinymail-devel-list mailing list
> tinymail-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/tinymail-devel-list


-- 
José Dapena Paz <jdapena igalia com>
Igalia



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]