aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.h
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-07 03:00:32 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-07 03:00:32 +0800
commitf789abbd422604206c386199c80fb5eac8e34733 (patch)
treed0a1d734f996e2f4bca6aa58d695d6489b0403b0 /camel/providers/imap/camel-imap-utils.h
parentd701d18f51dbc1501cafba55025a7a74466e16cd (diff)
downloadgsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar.gz
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar.bz2
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar.lz
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar.xz
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.tar.zst
gsoc2013-evolution-f789abbd422604206c386199c80fb5eac8e34733.zip
Completely hide the namespace from everything external to the IMAP code,
2001-08-06 Peter Williams <peterw@ximian.com> Completely hide the namespace from everything external to the IMAP code, which Dan W says is the way it should be. * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf): Add a new %F argument, which is like %S but will add the namespace (for folder names). (camel_imap_command): Use %F here. * providers/imap/camel-imap-utils.c (imap_parse_list_response): Changed to strip out the namespec when returning *folder. In order to do this we need to be passed the CamelImapStore. (imap_concat): Move to here from camel-imap-store.c, un-static (imap_namespace_concat): New function, adds the namespace to the folder name, unless it's INBOX. * providers/imap/camel-imap-utils.h: Prototypes. * providers/imap/camel-imap-store.c (imap_connect_online): Extra arg to imap_parse_list_response. (imap_connect_offline): Here too. (get_folder_status): Use %F. (get_folder_online): Here too. (delete_folder): Here too. (create_folder): Here too, and arg to imap_parse_list_response. (parse_list_response_as_folder_info): Arg to i_p_l_r. (get_subscribed_folders_by_hand): Use %F. (get_folders_online): Here too. (get_folder_info_online): Instead of checking for NULL @name, check for name = NULL or "", and set to "" instead of namespace. Pass "" instead of namespace to camel_folder_info_build. (subscribe_folder): Use %F. (unsubscribe_folder): Here too. * providers/imap/camel-imap-folder.c (imap_get_full_name): This now just returns folder->full_name. (do_append): Use %F (do_copy): Here too. svn path=/trunk/; revision=11705
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.h')
-rw-r--r--camel/providers/imap/camel-imap-utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-utils.h b/camel/providers/imap/camel-imap-utils.h
index a3b4bbdfdc..1d20ffe175 100644
--- a/camel/providers/imap/camel-imap-utils.h
+++ b/camel/providers/imap/camel-imap-utils.h
@@ -29,6 +29,7 @@ extern "C" {
#endif /* __cplusplus }*/
#include "camel-folder-summary.h"
+#include "camel-imap-types.h"
char *imap_next_word (const char *buf);
@@ -36,7 +37,7 @@ char *imap_next_word (const char *buf);
#define IMAP_LIST_FLAG_NOSELECT (1 << 1)
#define IMAP_LIST_FLAG_MARKED (1 << 2)
#define IMAP_LIST_FLAG_UNMARKED (1 << 3)
-gboolean imap_parse_list_response (const char *buf, int *flags, char *sep, char **folder);
+gboolean imap_parse_list_response (CamelImapStore *store, const char *buf, int *flags, char *sep, char **folder);
char *imap_create_flag_list (guint32 flags);
guint32 imap_parse_flag_list (char **flag_list);
@@ -61,6 +62,9 @@ char * imap_uid_array_to_set (CamelFolderSummary *summary, GPtrArray *uids);
GPtrArray *imap_uid_set_to_array (CamelFolderSummary *summary, const char *uids);
void imap_uid_array_free (GPtrArray *arr);
+char *imap_concat (CamelImapStore *imap_store, const char *prefix, const char *suffix);
+char *imap_namespace_concat (CamelImapStore *store, const char *name);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */