changeset 19625:0473b9d7e0fd

pop3-migration: Fix to 2f19f8 - Don't convert LF also to '?' in header hashes.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 24 Jan 2016 19:54:51 +0200
parents 259d971afa5a
children d9905cfd13fd
files src/plugins/pop3-migration/pop3-migration-plugin.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/pop3-migration/pop3-migration-plugin.c	Sun Jan 24 19:34:21 2016 +0200
+++ b/src/plugins/pop3-migration/pop3-migration-plugin.c	Sun Jan 24 19:54:51 2016 +0200
@@ -199,7 +199,8 @@
 		   which hopefully will satisfy everybody.
 		*/
 		for (i = start = 0; i < size; i++) {
-			if (data[i] < 0x20 || data[i] >= 0x80) {
+			if ((data[i] < 0x20 || data[i] >= 0x80) &&
+			    data[i] != '\n') {
 				sha1_loop(&sha1_ctx, data + start, i-start);
 				sha1_loop(&sha1_ctx, "?", 1);
 				start = i+1;