From ff8aed099f0921cde2c5797167a476b7eb185eab Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 16 Oct 2000 21:00:59 +0000 Subject: Only send the LOGOUT command if the store is connected. (imap_connect): 2000-10-16 Jeffrey Stedfast * providers/imap/camel-imap-store.c (imap_disconnect): Only send the LOGOUT command if the store is connected. (imap_connect): Set the 'connected' state to TRUE when we successfully connect. (get_folder_info): if (!topfi), 'topfi' was allocated but then 'fi' was set. I think Dan meant to set topfi since fi is an uninitialized value at this point. * providers/imap/camel-imap-command.c (imap_read_response): Check for the untagged BYE response and set the 'connected' state to FALSE if we receive the BYE response. Return NULL if we get a BYE response. svn path=/trunk/; revision=5944 --- camel/providers/imap/camel-imap-store.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers/imap/camel-imap-store.h') diff --git a/camel/providers/imap/camel-imap-store.h b/camel/providers/imap/camel-imap-store.h index a211457dbe..3c492c5aa3 100644 --- a/camel/providers/imap/camel-imap-store.h +++ b/camel/providers/imap/camel-imap-store.h @@ -57,6 +57,8 @@ typedef struct { gboolean has_status_capability; gchar *dir_sep, *storage_path; + + gboolean connected; } CamelImapStore; -- cgit v1.2.3