Mercurial > dovecot > core-2.2
changeset 3259:9ea318f232e0 HEAD
Removed tb-negative-fetch workaround. It shouldn't be needed anymore because
of the FETCH ordering changes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 03 Apr 2005 01:44:05 +0300 |
parents | 4fb1a08bfa11 |
children | 6a179bf1272e |
files | dovecot-example.conf src/imap/common.h src/imap/imap-fetch-body.c src/imap/main.c |
diffstat | 4 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Sun Apr 03 01:38:14 2005 +0300 +++ b/dovecot-example.conf Sun Apr 03 01:44:05 2005 +0300 @@ -420,10 +420,6 @@ # workaround makes sure that Netscape never breaks by adding the line if # it doesn't exist. This is done only for FETCH BODY[HEADER.FIELDS..] # commands. Note that RFC says this shouldn't be done. - # tb-negative-fetch: - # Thunderbird sometimes messed up some calculations and wants to read - # the message past it's end, giving negative size to FETCH BODY[]<..> - # command. This workaround just hides the error message. #imap_client_workarounds = outlook-idle }
--- a/src/imap/common.h Sun Apr 03 01:38:14 2005 +0300 +++ b/src/imap/common.h Sun Apr 03 01:44:05 2005 +0300 @@ -26,8 +26,7 @@ enum client_workarounds { WORKAROUND_DELAY_NEWMAIL = 0x01, WORKAROUND_OUTLOOK_IDLE = 0x02, - WORKAROUND_NETSCAPE_EOH = 0x04, - WORKAROUND_TB_NEGATIVE_FETCH = 0x08 + WORKAROUND_NETSCAPE_EOH = 0x04 }; extern struct ioloop *ioloop;
--- a/src/imap/imap-fetch-body.c Sun Apr 03 01:38:14 2005 +0300 +++ b/src/imap/imap-fetch-body.c Sun Apr 03 01:44:05 2005 +0300 @@ -798,14 +798,6 @@ if (*p == '.') { p++; - if (*p == '-' && (client_workarounds & - WORKAROUND_TB_NEGATIVE_FETCH) != 0) { - /* Thunderbird messed up some calculations - and wants to read the message past it's - end. The fetch returns empty result anyway, - so just ignore '-'. */ - p++; - } if (!read_uoff_t(&p, &body->max_size) || body->max_size > OFF_T_MAX) { /* wrapped */
--- a/src/imap/main.c Sun Apr 03 01:38:14 2005 +0300 +++ b/src/imap/main.c Sun Apr 03 01:44:05 2005 +0300 @@ -32,7 +32,6 @@ { "delay-newmail", WORKAROUND_DELAY_NEWMAIL }, { "outlook-idle", WORKAROUND_OUTLOOK_IDLE }, { "netscape-eoh", WORKAROUND_NETSCAPE_EOH }, - { "tb-negative-fetch", WORKAROUND_TB_NEGATIVE_FETCH }, { NULL, 0 } };