[evolution-patches] 71625, imap message not showing properly first time




this seems to fix it, and afaict is more correct

Index: camel/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/Attic/ChangeLog,v
retrieving revision 1.2251.2.33
diff -u -p -r1.2251.2.33 ChangeLog
--- camel/ChangeLog	21 Jan 2005 04:43:57 -0000	1.2251.2.33
+++ camel/ChangeLog	24 Jan 2005 02:39:01 -0000
@@ -1,3 +1,11 @@
+2005-01-24  Not Zed  <NotZed Ximian com>
+
+	** See bug #71625, and bug #56110.
+
+	* providers/imap/camel-imap-folder.c (get_content): when getting a
+	simple content for a message, don't get .TEXT, as that is the full
+	content of a message, not the part itself.
+
 2005-01-17  Not Zed  <NotZed Ximian com>
 
 	* camel-multipart-signed.c (skip_content): in the message state
Index: camel/providers/imap/camel-imap-folder.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/imap/Attic/camel-imap-folder.c,v
retrieving revision 1.337.6.2
diff -u -p -r1.337.6.2 camel-imap-folder.c
--- camel/providers/imap/camel-imap-folder.c	30 Nov 2004 07:56:07 -0000	1.337.6.2
+++ camel/providers/imap/camel-imap-folder.c	24 Jan 2005 02:39:02 -0000
@@ -1848,9 +1848,10 @@ get_content (CamelImapFolder *imap_folde
 		CamelTransferEncoding enc;
 		char *spec;
 
+		/* NB: we need this differently to multipart/signed case above on purpose */
 		spec = g_alloca(strlen(part_spec) + 6);
 		if (frommsg)
-			sprintf(spec, part_spec[0] ? "%s.TEXT" : "1.TEXT", part_spec);
+			sprintf(spec, part_spec[0] ? "%s.1" : "1", part_spec);
 		else
 			strcpy(spec, part_spec[0]?part_spec:"1");
 


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