diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap4/camel-imap-command.c | 10 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap-engine.c | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/camel/providers/imap4/camel-imap-command.c b/camel/providers/imap4/camel-imap-command.c index 73f1f97096..e5668ccbc6 100644 --- a/camel/providers/imap4/camel-imap-command.c +++ b/camel/providers/imap4/camel-imap-command.c @@ -32,7 +32,7 @@ #include "camel-imap-stream.h" #include "camel-imap-engine.h" -/*#include "camel-imap-folder.h"*/ +#include "camel-imap-folder.h" #include "camel-imap-specials.h" #include "camel-imap-command.h" @@ -65,6 +65,7 @@ imap_string_get_type (const char *str) return type; } +#if 0 static gboolean imap_string_is_atom_safe (const char *str) { @@ -82,6 +83,7 @@ imap_string_is_quote_safe (const char *str) return *str == '\0'; } +#endif static size_t camel_imap_literal_length (CamelIMAPLiteral *literal) @@ -272,7 +274,7 @@ camel_imap_command_newv (CamelIMAPEngine *engine, CamelIMAPFolder *imap_folder, g_string_append (str, string); break; default: - g_warning ("unknown formatter %%c", *format); + g_warning ("unknown formatter %%%c", *format); g_string_append_c (str, '%'); g_string_append_c (str, *format); break; @@ -481,18 +483,16 @@ camel_imap_command_step (CamelIMAPCommand *ic) { CamelIMAPEngine *engine = ic->engine; int result = CAMEL_IMAP_RESULT_NONE; - CamelIMAPUntaggedCallback untagged; CamelIMAPLiteral *literal; camel_imap_token_t token; unsigned char *linebuf; ssize_t nwritten; size_t len; - int ret; g_assert (ic->part != NULL); if (ic->part == ic->parts) { - ic->tag = g_strdup_printf ("%c%0.5u", engine->tagprefix, engine->tag++); + ic->tag = g_strdup_printf ("%c%.5u", engine->tagprefix, engine->tag++); camel_stream_printf (engine->ostream, "%s ", ic->tag); d(fprintf (stderr, "sending : %s ", ic->tag)); } diff --git a/camel/providers/imap4/camel-imap-engine.c b/camel/providers/imap4/camel-imap-engine.c index d82bdd43d9..86afb12fd5 100644 --- a/camel/providers/imap4/camel-imap-engine.c +++ b/camel/providers/imap4/camel-imap-engine.c @@ -29,6 +29,7 @@ #include <camel/camel-sasl.h> #include <camel/camel-stream-buffer.h> +#include "camel-imap-summary.h" #include "camel-imap-command.h" #include "camel-imap-stream.h" #include "camel-imap-folder.h" @@ -593,7 +594,7 @@ engine_parse_status (CamelIMAPEngine *engine, CamelException *ex) mailbox = g_strdup (token.v.qstring); break; case CAMEL_IMAP_TOKEN_LITERAL: - if (camel_imap_engine_literal (engine, (unsigned char **) &mailbox, &len, err) == -1) + if (camel_imap_engine_literal (engine, (unsigned char **) &mailbox, &len, ex) == -1) return -1; break; default: |