From cf8db42ff883c5452998b0d8f57c2394abec42db Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 21 Jan 2002 23:28:20 +0000 Subject: As a temporary solution, just printf ("\a"); to make a beep :-) 2002-01-21 Jeffrey Stedfast * camel-filter-driver.c (do_beep): As a temporary solution, just printf ("\a"); to make a beep :-) * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf): Encode the mailbox to UTF-7 here. * providers/imap/camel-imap-utils.c (imap_parse_list_response): Decode the mailbox name as we parse the list response. (imap_mailbox_decode): It's only an illegal mailbox name if it didn't switch back to US-ASCII mode. svn path=/trunk/; revision=15421 --- camel/providers/imap/camel-imap-utils.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'camel/providers/imap/camel-imap-utils.h') diff --git a/camel/providers/imap/camel-imap-utils.h b/camel/providers/imap/camel-imap-utils.h index bedc604116..924b71c119 100644 --- a/camel/providers/imap/camel-imap-utils.h +++ b/camel/providers/imap/camel-imap-utils.h @@ -28,10 +28,12 @@ extern "C" { #pragma } #endif /* __cplusplus }*/ +#include + #include "camel-folder-summary.h" #include "camel-imap-types.h" -char *imap_next_word (const char *buf); +const char *imap_next_word (const char *buf); #define IMAP_LIST_FLAG_NOINFERIORS (1 << 0) #define IMAP_LIST_FLAG_NOSELECT (1 << 1) @@ -49,7 +51,7 @@ guint32 imap_parse_flag_list (char **flag_list); enum { IMAP_STRING, IMAP_NSTRING, IMAP_ASTRING }; -char *imap_parse_string_generic (char **str_p, int *len, int type); +char *imap_parse_string_generic (char **str_p, size_t *len, int type); #define imap_parse_string(str_p, len_p) \ imap_parse_string_generic (str_p, len_p, IMAP_STRING) @@ -72,8 +74,8 @@ 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); -char *imap_mailbox_encode (const unsigned char *in, int inlen); -char *imap_mailbox_decode (const unsigned char *in, int inlen); +char *imap_mailbox_encode (const unsigned char *in, size_t inlen); +char *imap_mailbox_decode (const unsigned char *in, size_t inlen); #ifdef __cplusplus } -- cgit v1.2.3