dovecot-2.2: lib-imap: Added IMAP_RESP_CODE_UNKNOWN_CTE
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 21 23:16:01 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/41e6c2a4a36b
changeset: 14627:41e6c2a4a36b
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 21 23:15:21 2012 +0300
description:
lib-imap: Added IMAP_RESP_CODE_UNKNOWN_CTE
diffstat:
src/imap/cmd-append.c | 4 +++-
src/lib-imap/imap-resp-code.h | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 64b0c9851781 -r 41e6c2a4a36b src/imap/cmd-append.c
--- a/src/imap/cmd-append.c Thu Jun 21 22:56:15 2012 +0300
+++ b/src/imap/cmd-append.c Thu Jun 21 23:15:21 2012 +0300
@@ -6,6 +6,7 @@
#include "istream-chain.h"
#include "ostream.h"
#include "str.h"
+#include "imap-resp-code.h"
#include "istream-binary-converter.h"
#include "mail-storage-private.h"
#include "imap-parser.h"
@@ -327,7 +328,8 @@
break;
if (args->literal8 && !ctx->binary_input) {
client_send_tagline(cmd,
- "NO [UNKNOWN-CTE] Binary input allowed only when the first part is binary.");
+ "NO ["IMAP_RESP_CODE_UNKNOWN_CTE"] "
+ "Binary input allowed only when the first part is binary.");
return -1;
}
*nonsync_r = args->type == IMAP_ARG_LITERAL_SIZE_NONSYNC;
diff -r 64b0c9851781 -r 41e6c2a4a36b src/lib-imap/imap-resp-code.h
--- a/src/lib-imap/imap-resp-code.h Thu Jun 21 22:56:15 2012 +0300
+++ b/src/lib-imap/imap-resp-code.h Thu Jun 21 23:15:21 2012 +0300
@@ -20,4 +20,6 @@
#define IMAP_RESP_CODE_ALREADYEXISTS "ALREADYEXISTS"
#define IMAP_RESP_CODE_NONEXISTENT "NONEXISTENT"
+#define IMAP_RESP_CODE_UNKNOWN_CTE "UNKNOWN-CTE" /* BINARY */
+
#endif
More information about the dovecot-cvs
mailing list