[evolution-patches] 63881 (dragging messages from vfolders)



http://bugzilla.ximian.com/show_bug.cgi?id=63881

camel vee-folders throw an exception when transfer_messages_to is called
on them, even when dragging messages *out* of a vfolder (and give a
confusing error message). This does not happen very often, but this
patch eliminates one instance. Hope someone can review it.

Patch to Changelog is in separate file.

Ed Catmur
--- camel/camel-folder.c	2004/08/25 00:02:13	1.1
+++ camel/camel-folder.c	2004/08/25 00:06:58
@@ -1470,6 +1470,11 @@ camel_folder_transfer_messages_to (Camel
 		 */
 		if (CAMEL_IS_VTRASH_FOLDER (dest))
 			CF_CLASS (dest)->transfer_messages_to (source, uids, dest, transferred_uids, delete_originals, ex);
+		else if (CAMEL_IS_VEE_FOLDER (source))
+			/* If the source folder is a vee-folder, we cannot use 
+			 * its transfer method, so use the generic method.
+			 */
+			transfer_messages_to (source, uids, dest, transferred_uids, delete_originals, ex);
 		else
 			CF_CLASS (source)->transfer_messages_to (source, uids, dest, transferred_uids, delete_originals, ex);
 	} else
--- camel/ChangeLog	2004/08/25 00:53:25	1.1
+++ camel/ChangeLog	2004/08/25 00:55:29
@@ -1,3 +1,10 @@
+2004-08-25  Ed Catmur  <ed catmur co uk>
+
+	Fix for bug #63881
+
+	* camel-folder.c (camel_folder_transfer_messages_to): use generic
+	transfer_messages_to when source is a vee-folder.
+
 2004-08-23  Not Zed  <NotZed Ximian com>
 
 	** See bug #63189.


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