diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-16 06:22:20 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-16 06:22:20 +0800 |
commit | 0f13b8f0bc1c5cdc1009f1be9271133d2adecc43 (patch) | |
tree | d9044096545e2a3cf916a2ae02d57d81c2c9b53d /mail/mail-ops.c | |
parent | 09cf0a78c465c7e746b84057ac3222d7e73032ee (diff) | |
download | gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar.gz gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar.bz2 gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar.lz gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar.xz gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.tar.zst gsoc2013-evolution-0f13b8f0bc1c5cdc1009f1be9271133d2adecc43.zip |
Update for CamelFolder changes.
* mail-ops.c (fetch_mail):
* component-factory.c (owner_unset_cb):
* message-list.c (message_list_set_folder): Update for CamelFolder
changes.
svn path=/trunk/; revision=3583
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index b192f2244c..81cb5ae139 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -145,8 +145,6 @@ fetch_mail (GtkWidget *button, gpointer user_data) folder = camel_store_get_folder (fb->folder->parent_store, strrchr (tmp_mbox, '/') + 1, FALSE, ex); - camel_folder_open (folder, FOLDER_OPEN_READ, ex); - if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) { mail_exception_dialog ("Unable to move mail", ex, fb); goto cleanup; @@ -168,7 +166,6 @@ fetch_mail (GtkWidget *button, gpointer user_data) sourcefolder = camel_store_get_folder (store, "inbox", FALSE, ex); - camel_folder_open (sourcefolder, FOLDER_OPEN_READ, ex); if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) { mail_exception_dialog ("Unable to get new mail", ex, fb); goto cleanup; @@ -185,9 +182,6 @@ fetch_mail (GtkWidget *button, gpointer user_data) folder = camel_store_get_folder (fb->folder->parent_store, strrchr (tmp_mbox, '/') + 1, TRUE, ex); - - camel_folder_open(folder, FOLDER_OPEN_RW, ex); - if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) { mail_exception_dialog ("Unable to move mail", ex, fb); goto cleanup; @@ -218,7 +212,7 @@ fetch_mail (GtkWidget *button, gpointer user_data) gtk_object_unref((GtkObject *)msg); } camel_folder_free_uids (sourcefolder, uids); - camel_folder_close (sourcefolder, TRUE, ex); + camel_folder_sync (sourcefolder, TRUE, ex); if (camel_exception_is_set (ex)) mail_exception_dialog ("", ex, fb); gtk_object_unref((GtkObject *)sourcefolder); @@ -265,8 +259,7 @@ fetch_mail (GtkWidget *button, gpointer user_data) if (url) g_free (url); if (folder) { - if (camel_folder_is_open (folder)) - camel_folder_close (folder, TRUE, ex); + camel_folder_sync (folder, TRUE, ex); gtk_object_unref (GTK_OBJECT (folder)); } if (store) { |