From 58752d028e6f7519e625a47827846a813e65e4e6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 11 Aug 2000 04:24:13 +0000 Subject: Yay so lets fix an already fixed fix, again. (copy_message_to): and here 2000-08-11 Not Zed * camel-folder.c (move_message_to): Yay so lets fix an already fixed fix, again. (copy_message_to): and here too ... update for api change to append(). And removed another warning. svn path=/trunk/; revision=4728 --- camel/ChangeLog | 6 ++++++ camel/camel-folder.c | 31 +++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 36abd51dbd..0c9869871f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-08-11 Not Zed + + * camel-folder.c (move_message_to): Yay so lets fix an already fixed fix, again. + (copy_message_to): and here too ... update for api change to append(). + And removed another warning. + 2000-08-10 Christopher James Lahey * camel-folder-search.c, camel-folder-summary.c, camel-medium.c, diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 8e498ad57b..cb0fa02ae8 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -92,9 +92,6 @@ static GPtrArray *get_summary (CamelFolder *folder); static void free_summary (CamelFolder *folder, GPtrArray *array); -static const gchar *get_message_uid (CamelFolder *folder, - CamelMimeMessage *message); - static CamelMimeMessage *get_message (CamelFolder *folder, const gchar *uid, CamelException *ex); @@ -974,13 +971,13 @@ copy_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, /* Default implementation. */ - msg = camel_folder_get_message (source, uid, ex); + msg = camel_folder_get_message(source, uid, ex); if (!msg) return; - info = camel_folder_get_message_info (source, uid); - camel_folder_append_message (dest, msg, info ? info->flags : 0, ex); - camel_object_unref (CAMEL_OBJECT (msg)); - if (camel_exception_is_set (ex)) + info = camel_folder_get_message_info(source, uid); + camel_folder_append_message(dest, msg, info, ex); + camel_object_unref(CAMEL_OBJECT (msg)); + if (camel_exception_is_set(ex)) return; } @@ -1004,29 +1001,27 @@ camel_folder_copy_message_to (CamelFolder *source, const char *uid, g_return_if_fail (uid != NULL); if (source->parent_store == dest->parent_store) { - return CF_CLASS (source)->copy_message_to (source, uid, - dest, ex); + return CF_CLASS (source)->copy_message_to(source, uid,dest, ex); } else - return copy_message_to (source, uid, dest, ex); + return copy_message_to(source, uid, dest, ex); } static void -move_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, - CamelException *ex) +move_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, CamelException *ex) { CamelMimeMessage *msg; const CamelMessageInfo *info; /* Default implementation. */ - msg = camel_folder_get_message (source, uid, ex); + msg = camel_folder_get_message(source, uid, ex); if (!msg) return; - info = camel_folder_get_message_info (source, uid); - camel_folder_append_message (dest, msg, info ? info->flags : 0, ex); - camel_object_unref (CAMEL_OBJECT (msg)); - if (camel_exception_is_set (ex)) + info = camel_folder_get_message_info(source, uid); + camel_folder_append_message(dest, msg, info, ex); + camel_object_unref(CAMEL_OBJECT(msg)); + if (camel_exception_is_set(ex)) return; camel_folder_delete_message (source, uid); } -- cgit v1.2.3