aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-18 11:41:29 +0800
committerDan Winship <danw@src.gnome.org>2000-10-18 11:41:29 +0800
commit345f04ccae499e039f1f6f3d21768a2d93ea1c83 (patch)
treee786fe0cffa8eb5151594a99f9eecbd08088d1c8 /camel/providers/imap
parent0ae667a794384246396f2dc903b709e6c6634698 (diff)
downloadgsoc2013-evolution-345f04ccae499e039f1f6f3d21768a2d93ea1c83.tar.gz
gsoc2013-evolution-345f04ccae499e039f1f6f3d21768a2d93ea1c83.tar.zst
gsoc2013-evolution-345f04ccae499e039f1f6f3d21768a2d93ea1c83.zip
(camel_imap_folder_new): Move the summary creation to after the
folder selection again, since it depends on the uidvalidity having been set. svn path=/trunk/; revision=5976
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-folder.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 16533dbc1c..38dd495eac 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -187,15 +187,6 @@ camel_imap_folder_new (CamelStore *parent, const char *folder_name,
short_name = folder_name;
camel_folder_construct (folder, parent, folder_name, short_name);
- imap_folder->summary = camel_imap_summary_new (summary_file, validity);
- if (!imap_folder->summary) {
- camel_object_unref (CAMEL_OBJECT (folder));
- camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Could not load summary for %s",
- folder_name);
- return NULL;
- }
-
response = camel_imap_command (imap_store, folder, ex, NULL);
if (!response) {
camel_object_unref ((CamelObject *)folder);
@@ -221,6 +212,15 @@ camel_imap_folder_new (CamelStore *parent, const char *folder_name,
}
camel_imap_response_free (response);
+ imap_folder->summary = camel_imap_summary_new (summary_file, validity);
+ if (!imap_folder->summary) {
+ camel_object_unref (CAMEL_OBJECT (folder));
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
+ "Could not load summary for %s",
+ folder_name);
+ return NULL;
+ }
+
imap_refresh_info (folder, ex);
if (camel_exception_is_set (ex)) {
camel_object_unref (CAMEL_OBJECT (folder));