changeset 19645:a1cd3f372251

pop3-migration: Don't change TAB to '?' when calculating header hash.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 26 Jan 2016 17:55:10 +0200
parents defab5b9af2a
children 25f06710e671
files src/plugins/pop3-migration/pop3-migration-plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/pop3-migration/pop3-migration-plugin.c	Tue Jan 26 17:53:28 2016 +0200
+++ b/src/plugins/pop3-migration/pop3-migration-plugin.c	Tue Jan 26 17:55:10 2016 +0200
@@ -210,7 +210,7 @@
 		*/
 		for (i = start = 0; i < size; i++) {
 			if ((data[i] < 0x20 || data[i] >= 0x80) &&
-			    data[i] != '\n') {
+			    (data[i] != '\t' && data[i] != '\n')) {
 				sha1_loop(&sha1_ctx, data + start, i-start);
 				sha1_loop(&sha1_ctx, "?", 1);
 				start = i+1;