Mercurial > dovecot > original-hg > dovecot-1.2
diff src/pop3/commands.c @ 2316:1c1ed4494aa4 HEAD
Split client_workarounds to imap_ and pop3_ ones. Added outlook-no-nuls POP3
workaround.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 10 Jul 2004 20:24:08 +0300 |
parents | 9cc23c29aaec |
children | ec1dac19cb06 |
line wrap: on
line diff
--- a/src/pop3/commands.c Sat Jul 10 14:16:05 2004 +0300 +++ b/src/pop3/commands.c Sat Jul 10 20:24:08 2004 +0300 @@ -242,6 +242,10 @@ add = '.'; i++; break; + } else if (data[i] == '\0' && + (client_workarounds & + WORKAROUND_OUTLOOK_NO_NULS) != 0) { + add = '\x80'; } } @@ -252,6 +256,10 @@ if (o_stream_send(output, &add, 1) < 0) return; last = add; + if (client_workarounds & WORKAROUND_OUTLOOK_NO_NULS) { + if (i < size && data[i] == '\0') + i++; + } } else { last = data[i-1]; }