aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-command.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-25 11:47:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-25 11:47:04 +0800
commit5eebe62b1d62ecac577a4003b85e99897bb90c30 (patch)
tree19e55a3848b160145e1d4e84a3a1b3b0ebfb46e9 /camel/providers/imap/camel-imap-command.c
parentdbb8a61852e4ca800be2267525ca241a6a8f5325 (diff)
downloadgsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar.gz
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar.bz2
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar.lz
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar.xz
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.tar.zst
gsoc2013-evolution-5eebe62b1d62ecac577a4003b85e99897bb90c30.zip
moved the RECNET flag into the folder area (bit 17-30).
2004-02-25 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT): moved the RECNET flag into the folder area (bit 17-30). 2004-02-24 Not Zed <NotZed@Ximian.com> ** See bug #53876. * providers/imap/camel-imap-command.c (camel_imap_command): ref the folder before unreffing store->current_folder, incase they're the same. Do a select anyway. * providers/imap/camel-imap-folder.c (imap_refresh_info): keep the connect_lock for longer, imap_rescan for one assumes its locked. Fixes a race selecting the folder for refresh. svn path=/trunk/; revision=24862
Diffstat (limited to 'camel/providers/imap/camel-imap-command.c')
-rw-r--r--camel/providers/imap/camel-imap-command.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index 45e5751b87..e7cfc051a5 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -99,14 +99,11 @@ camel_imap_command (CamelImapStore *store, CamelFolder *folder,
cmd = imap_command_strdup_vprintf (store, fmt, ap);
va_end (ap);
} else {
- if (store->current_folder) {
- camel_object_unref (CAMEL_OBJECT (store->current_folder));
- store->current_folder = NULL;
- }
+ camel_object_ref(folder);
+ if (store->current_folder)
+ camel_object_unref(store->current_folder);
store->current_folder = folder;
- camel_object_ref (CAMEL_OBJECT (folder));
- cmd = imap_command_strdup_printf (store, "SELECT %F",
- folder->full_name);
+ cmd = imap_command_strdup_printf (store, "SELECT %F", folder->full_name);
}
if (!imap_command_start (store, folder, cmd, ex)) {