Skip to content

Commit

Permalink
doveadm dump: Fix imapzlib to handle input traffic
Browse files Browse the repository at this point in the history
This has been broken with newer Dovecot versions for a while now.
  • Loading branch information
sirainen authored and villesavolainen committed Mar 12, 2018
1 parent dbc6de3 commit 76838b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doveadm/doveadm-zlib.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 76838b8

Please sign in to comment.