]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: imap_write_arg() - Write IMAP_ARG_LITERAL_SIZE* the same as imap_write_args...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Nov 2019 12:34:48 +0000 (14:34 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 13 Nov 2019 08:31:27 +0000 (10:31 +0200)
Either way it's not a proper literal because the content is missing.
This is at least now more consistent.

src/lib-imap/imap-util.c

index 048192a20210f56b470f6c7179d88bc92c5524e9..34ebe5d203af2514ade5ff495826aaa4895206bf 100644 (file)
@@ -102,9 +102,8 @@ void imap_write_arg(string_t *dest, const struct imap_arg *arg)
                break;
        case IMAP_ARG_LITERAL_SIZE:
        case IMAP_ARG_LITERAL_SIZE_NONSYNC:
-               str_printfa(dest, "{%"PRIuUOFF_T"}\r\n",
+               str_printfa(dest, "<%"PRIuUOFF_T" byte literal>",
                            imap_arg_as_literal_size(arg));
-               str_append(dest, "<too large>");
                break;
        case IMAP_ARG_EOL:
                i_unreached();