]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm dump: Fix imapzlib to handle input traffic
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 6 Jan 2018 20:11:30 +0000 (22:11 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Mar 2018 08:02:30 +0000 (10:02 +0200)
This has been broken with newer Dovecot versions for a while now.

src/doveadm/doveadm-zlib.c

index c70379fa7b7ed5ab8dc41c6714ff5f4cece6e795..a2144d6921173b8465874710ae98592cdfe2bb94 100644 (file)
@@ -61,7 +61,7 @@ static void cmd_dump_imapzlib(int argc ATTR_UNUSED, char *argv[])
                        continue;
                line++;
 
-               if (strcmp(line, "OK Begin compression.") == 0 ||
+               if (strncmp(line, "OK Begin compression", 20) == 0 ||
                    strcasecmp(line, "COMPRESS DEFLATE") == 0)
                        break;
        }