diff options
author | Dan Winship <danw@src.gnome.org> | 2001-05-03 03:53:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-05-03 03:53:53 +0800 |
commit | d0edb931396f444394f70c61c6dd1031630b9970 (patch) | |
tree | 34f81490a44241b78322777b742d061d481fad54 /camel/providers/imap/camel-imap-store.h | |
parent | fec8edd6818c7f7fd64ae305dbb75574e73a6581 (diff) | |
download | gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar.gz gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar.bz2 gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar.lz gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar.xz gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.tar.zst gsoc2013-evolution-d0edb931396f444394f70c61c6dd1031630b9970.zip |
Clean this up a bit. Add a "tag_prefix" member. Move "useful_lsub" into
* providers/imap/camel-imap-store.h: Clean this up a bit. Add a
"tag_prefix" member. Move "useful_lsub" into capabilities.
* providers/imap/camel-imap-store.c (camel_imap_store_init):
Initialize the tag_prefix, based on a static variable.
* providers/imap/camel-imap-command.c (camel_imap_command): Use
the store's tag_prefix character rather than "A" at the start of
the tag. Makes the verbose debug output easier to parse when
connected to multiple IMAP servers. (Well, unless you're connected
to more than 26 servers...)
svn path=/trunk/; revision=9649
Diffstat (limited to 'camel/providers/imap/camel-imap-store.h')
-rw-r--r-- | camel/providers/imap/camel-imap-store.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/camel/providers/imap/camel-imap-store.h b/camel/providers/imap/camel-imap-store.h index fb4be047c2..b05e525845 100644 --- a/camel/providers/imap/camel-imap-store.h +++ b/camel/providers/imap/camel-imap-store.h @@ -52,6 +52,7 @@ typedef enum { #define IMAP_CAPABILITY_NAMESPACE (1 << 3) #define IMAP_CAPABILITY_UIDPLUS (1 << 4) #define IMAP_CAPABILITY_LITERALPLUS (1 << 5) +#define IMAP_CAPABILITY_useful_lsub (1 << 6) #define IMAP_PARAM_OVERRIDE_NAMESPACE (1 << 0) #define IMAP_PARAM_CHECK_ALL (1 << 1) @@ -61,20 +62,17 @@ struct _CamelImapStore { CamelRemoteStore parent_object; struct _CamelImapStorePrivate *priv; - CamelFolder *current_folder; - + /* Information about the command channel / connection status */ + gboolean connected; + char tag_prefix; guint32 command; - + CamelFolder *current_folder; + + /* Information about the server */ CamelImapServerLevel server_level; guint32 capabilities, parameters; - GHashTable *authtypes; - - char *namespace, dir_sep, *storage_path, *base_url; - - gboolean connected; - - GHashTable *subscribed_folders; - gboolean useful_lsub; + char *namespace, dir_sep, *base_url, *storage_path; + GHashTable *authtypes, *subscribed_folders; }; |