dovecot-2.2: imap: Fixed GETMETADATA NIL to treat it as "NIL"
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 2 22:32:36 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/081b1ba65fd4
changeset: 16918:081b1ba65fd4
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 02 22:31:14 2013 +0200
description:
imap: Fixed GETMETADATA NIL to treat it as "NIL"
diffstat:
src/imap/cmd-getmetadata.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r b631a76e8992 -r 081b1ba65fd4 src/imap/cmd-getmetadata.c
--- a/src/imap/cmd-getmetadata.c Sat Nov 02 22:30:42 2013 +0200
+++ b/src/imap/cmd-getmetadata.c Sat Nov 02 22:31:14 2013 +0200
@@ -327,7 +327,7 @@
struct imap_getmetadata_context *ctx;
struct mail_namespace *ns;
const struct imap_arg *args, *options, *entries;
- const char *mailbox;
+ const char *mailbox, *entry_name;
if (!client_read_args(cmd, 0, 0, &args))
return FALSE;
@@ -351,7 +351,7 @@
return TRUE;
}
if (!imap_arg_get_list(&args[2], &entries)) {
- if (!IMAP_ARG_IS_ASTRING(&args[2]) ||
+ if (!imap_arg_get_astring(&args[2], &entry_name) ||
!IMAP_ARG_IS_EOL(&args[3])) {
client_send_command_error(cmd, "Invalid arguments.");
return TRUE;
More information about the dovecot-cvs
mailing list