diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-06 16:21:50 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-06 16:21:50 +0800 |
commit | f24ee0c5c97a394027b636d639be56dec7a01fb6 (patch) | |
tree | 7527afe8a5733ef9ac56ff6db86e872c03479277 /camel/camel-folder.c | |
parent | 9279a2cf22757bba12c54598963099c638504c80 (diff) | |
download | gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.tar.gz gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.tar.zst gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.zip |
** See bug #56464.
2004-04-06 Not Zed <NotZed@Ximian.com>
** See bug #56464.
* camel-folder.c (camel_folder_transfer_messages_to): do not lock
the source here.
(transfer_message_to): call the main entry point for get message
and append message.
** See bug #56050.
* camel-vee-store.c (vee_delete_folder): delete the state file if
it exists.
* camel-object.c (camel_object_state_write): create the parent dir
if we need to. Also spit a warning if we fail in the end.
* camel-vee-folder.c (camel_vee_folder_new): set the persistent
state file location.
(vee_sync): write the state file when we sync.
svn path=/trunk/; revision=25331
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 27b10421cc..83be9dd27d 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -1326,13 +1326,12 @@ transfer_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, /* Default implementation. */ - /* we alredy have the lock, dont deadlock */ - msg = CF_CLASS (source)->get_message (source, uid, ex); + msg = camel_folder_get_message(source, uid, ex); if (!msg) return; if (source->folder_flags & CAMEL_FOLDER_HAS_SUMMARY_CAPABILITY) - info = CF_CLASS (source)->get_message_info (source, uid); + info = camel_folder_get_message_info(source, uid); else info = camel_message_info_new_from_header (((CamelMimePart *)msg)->headers); @@ -1350,7 +1349,7 @@ transfer_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, if (info) { if (source->folder_flags & CAMEL_FOLDER_HAS_SUMMARY_CAPABILITY) - CF_CLASS (source)->free_message_info (source, info); + camel_folder_free_message_info(source, info); else camel_message_info_free (info); } @@ -1423,8 +1422,6 @@ camel_folder_transfer_messages_to (CamelFolder *source, GPtrArray *uids, return; } - CAMEL_FOLDER_LOCK(source, lock); - if (source->parent_store == dest->parent_store) { /* If either folder is a vtrash, we need to use the * vtrash transfer method. @@ -1435,8 +1432,6 @@ camel_folder_transfer_messages_to (CamelFolder *source, GPtrArray *uids, CF_CLASS (source)->transfer_messages_to (source, uids, dest, transferred_uids, delete_originals, ex); } else transfer_messages_to (source, uids, dest, transferred_uids, delete_originals, ex); - - CAMEL_FOLDER_UNLOCK(source, lock); } static void |