aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-07 08:07:06 +0800
committerDan Winship <danw@src.gnome.org>2000-06-07 08:07:06 +0800
commit440b4825e907c6d67b543a7589c5d37c69b892cd (patch)
tree4e2b8d0e2ef4e85fe2d99c554c7d2dfa825289fa /mail/mail-ops.c
parent012cc2eecb4b685829467685c88aae3826e2adb7 (diff)
downloadgsoc2013-evolution-440b4825e907c6d67b543a7589c5d37c69b892cd.tar.gz
gsoc2013-evolution-440b4825e907c6d67b543a7589c5d37c69b892cd.tar.zst
gsoc2013-evolution-440b4825e907c6d67b543a7589c5d37c69b892cd.zip
Update for folder creation/existence changes.
* mail-ops.c (fetch_mail): * folder-browser.c (folder_browser_load_folder): Update for folder creation/existence changes. * message-list.c (message_list_set_folder): Remove the code to create the folder if it doesn't exist, since we don't want to do that. svn path=/trunk/; revision=3455
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0d742bea1f..9a41b9d02e 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -144,7 +144,7 @@ fetch_mail (GtkWidget *button, gpointer user_data)
folder = camel_store_get_folder (fb->folder->parent_store,
strrchr (tmp_mbox, '/') + 1,
- ex);
+ FALSE, ex);
camel_folder_open (folder, FOLDER_OPEN_READ, ex);
if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
@@ -166,7 +166,8 @@ fetch_mail (GtkWidget *button, gpointer user_data)
goto cleanup;
}
- sourcefolder = camel_store_get_folder (store, "inbox", ex);
+ 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);
@@ -183,11 +184,7 @@ fetch_mail (GtkWidget *button, gpointer user_data)
folder = camel_store_get_folder (fb->folder->parent_store,
strrchr (tmp_mbox, '/') + 1,
- ex);
-
- if (!camel_folder_exists(folder, ex)) {
- camel_folder_create(folder, ex);
- }
+ TRUE, ex);
camel_folder_open(folder, FOLDER_OPEN_RW, ex);