diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-08-11 12:24:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-08-11 12:24:13 +0800 |
commit | 58752d028e6f7519e625a47827846a813e65e4e6 (patch) | |
tree | bee7ee4b7ba237b4a08a8e27a597394082c90e20 /camel | |
parent | 9c2c1900f90f55e1366cdf011cc2e6024d9a9891 (diff) | |
download | gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar.gz gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar.bz2 gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar.lz gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar.xz gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.tar.zst gsoc2013-evolution-58752d028e6f7519e625a47827846a813e65e4e6.zip |
Yay so lets fix an already fixed fix, again. (copy_message_to): and here
2000-08-11 Not Zed <NotZed@HelixCode.com>
* 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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-folder.c | 31 |
2 files changed, 19 insertions, 18 deletions
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 <NotZed@HelixCode.com> + + * 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 <clahey@helixcode.com> * 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); } |