aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-22 05:05:56 +0800
committerDan Winship <danw@src.gnome.org>2000-09-22 05:05:56 +0800
commit3af120103084dec827ae3026da10adb67fd89a79 (patch)
tree972a56ffdb6b2e7148c0c1b993093a765e415a56 /camel/providers/imap/camel-imap-utils.h
parent08a52d10bc6dd001c42ebf3303b71460e9785210 (diff)
downloadgsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar.gz
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar.bz2
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar.lz
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar.xz
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.tar.zst
gsoc2013-evolution-3af120103084dec827ae3026da10adb67fd89a79.zip
New function to convert Camel flags to an IMAP flag_list.
* providers/imap/camel-imap-utils.c (imap_create_flag_list): New function to convert Camel flags to an IMAP flag_list. (imap_parse_flag_list): Contrariwise. * providers/imap/camel-imap-store.c (camel_imap_command_*): Make the @ret arg actually optional, as (mostly) documented. (various): Don't pass "&result" to camel_imap_command_* if we're just going to immediately free it. Don't record status if we're not going to look at it. * providers/imap/camel-imap-folder.c: Likewise. (imap_summary_free): Use camel_folder_info_free. (imap_sync): Use imap_create_flag_list. Clear CAMEL_MESSAGE_FOLDER_FLAGGED after syncing so we don't keep re-syncing. (imap_append_message): Use imap_create_flag_list. Don't leak the memstream if the append fails. (imap_move_message_to): Use camel_folder_delete_message rather than doing it by hand. (imap_get_summary_internal, imap_get_message_info_internal): Use imap_parse_flag_list and header_raw_clear. (camel_imap_folder_changed): Use camel_message_info_free. svn path=/trunk/; revision=5544
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.h')
-rw-r--r--camel/providers/imap/camel-imap-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-utils.h b/camel/providers/imap/camel-imap-utils.h
index 11c6c48956..6f450fc8e8 100644
--- a/camel/providers/imap/camel-imap-utils.h
+++ b/camel/providers/imap/camel-imap-utils.h
@@ -36,6 +36,9 @@ gboolean imap_parse_list_response (char *buf, char *namespace, char **flags, cha
char *imap_translate_sexp (const char *expression);
+char *imap_create_flag_list (guint32 flags);
+guint32 imap_parse_flag_list (const char *flag_list);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */