Re: [Evolution] IMAP issues
- From: Superduck <superduck itsaduck com>
- To: Dan Winship <danw ximian com>
- Cc: evolution ximian com
- Subject: Re: [Evolution] IMAP issues
- Date: Wed, 14 Mar 2001 18:53:55 -0500
Ok. This seems to fix the issue with *displaying* the messages.
Everything is viewable now. However, all attachments are saved
as ascii text (junk).
Much closer tho...
And it's still kinda sexy... ;-)
On Tue, Mar 13, 2001 at 09:39:40PM +0500, Dan Winship wrote:
Can you try this patch?
Index: camel-imap-folder.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/imap/camel-imap-folder.c,v
retrieving revision 1.170
diff -u -r1.170 camel-imap-folder.c
--- camel-imap-folder.c 2001/02/26 21:38:39 1.170
+++ camel-imap-folder.c 2001/03/13 16:19:27
@@ -780,18 +780,22 @@
*headers_p = strchr (*headers_p, ' ');
if (!*headers_p)
- return FALSE;
+ return NULL;
(*headers_p)++;
headers = imap_parse_nstring (headers_p, &len);
- if (!headers)
- return FALSE;
- stream = camel_stream_mem_new_with_buffer (headers, len);
- g_free (headers);
+ if (!*headers_p)
+ return NULL;
medium = CAMEL_MEDIUM (camel_object_new (medium_type));
- camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (medium), stream);
- camel_object_unref (CAMEL_OBJECT (stream));
+
+ if (headers) {
+ stream = camel_stream_mem_new_with_buffer (headers, len);
+ g_free (headers);
+
+ camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (medium), stream);
+ camel_object_unref (CAMEL_OBJECT (stream));
+ }
return medium;
}
--
Pete Gaulin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]