aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-28 07:11:11 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-28 07:11:11 +0800
commit2c5a9bc2278c0922807316a0a63d84cd0333f545 (patch)
treee5a46c5e39fb278a3cb2b49eb00fc0f55e8ad8ce /camel/providers/imap/camel-imap-utils.h
parent1bf9e439824ee6a2aa721aa05859200da89cbc9b (diff)
downloadgsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar.gz
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar.bz2
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar.lz
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar.xz
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.tar.zst
gsoc2013-evolution-2c5a9bc2278c0922807316a0a63d84cd0333f545.zip
Added camel-imap-utils.[c,h]
2000-07-27 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/Makefile.am: Added camel-imap-utils.[c,h] * providers/imap/camel-imap-utils.[c,h]: Utilities for parsing server responses for use in both camel-imap-store.c and camel-imap-folder.c * providers/imap/camel-imap-folder.c (imap_get_summary_internal): Free all the pointers in the headers array. (imap_get_subfolder_names_internal): Updated to use imap_parse_list_response (imap_parse_subfolder_list): Removed in favor of imap_parse_list_response * providers/imap/camel-imap-store.c (camel_imap_command_extended): Free all the pointers in the data array. (imap_connect): Updated to use imap_parse_list_response and fixed a leak (folder_is_selectable): Updated. svn path=/trunk/; revision=4400
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.h')
-rw-r--r--camel/providers/imap/camel-imap-utils.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-utils.h b/camel/providers/imap/camel-imap-utils.h
new file mode 100644
index 0000000000..8ea5a40dbc
--- /dev/null
+++ b/camel/providers/imap/camel-imap-utils.h
@@ -0,0 +1,41 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Authors: Jeffrey Stedfast <fejj@helixcode.com>
+ *
+ * Copyright 2000 Helix Code, Inc. (www.helixcode.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef CAMEL_IMAP_UTILS_H
+#define CAMEL_IMAP_UTILS_H 1
+
+#ifdef __cplusplus
+extern "C" {
+#pragma }
+#endif /* __cplusplus }*/
+
+#include <glib.h>
+
+char *imap_next_word (char *buf);
+
+gboolean imap_parse_list_response (char *buf, char *namespace, char **flags, char **sep, char **folder);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* CAMEL_IMAP_UTILS_H */