]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: Don't change TAB to '?' when calculating header hash.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jan 2016 15:55:10 +0000 (17:55 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jan 2016 15:55:10 +0000 (17:55 +0200)
src/plugins/pop3-migration/pop3-migration-plugin.c

index d327ba4250ba0247a00346fc09bd0d0c3d6d6d32..3a31c4b214de421d825bbfa7c6d074795d5173ab 100644 (file)
@@ -210,7 +210,7 @@ int pop3_migration_get_hdr_sha1(uint32_t mail_seq, struct istream *input,
                */
                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;