Skip to content

Commit

Permalink
pop3-migration: Fix to 2f19f8 - Don't convert LF also to '?' in heade…
Browse files Browse the repository at this point in the history
…r hashes.
  • Loading branch information
sirainen committed Jan 24, 2016
1 parent 5fa253b commit 30f6ac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/pop3-migration/pop3-migration-plugin.c
Expand Up @@ -199,7 +199,8 @@ int pop3_migration_get_hdr_sha1(uint32_t mail_seq, struct istream *input,
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;
Expand Down

0 comments on commit 30f6ac0

Please sign in to comment.