aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-01-06 13:15:46 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-01-06 13:15:46 +0000
commit2ce40ef7d40cf2092df3c17b5cd286417e5f6e67 (patch)
treed0e7c0498b7d78ccb2f06fe46d7cea10d1f182e6 /pop3.c
parentcd14f33ceb42ef6a90abe094dd2e36cc4e37fa98 (diff)
downloadfetchmail-2ce40ef7d40cf2092df3c17b5cd286417e5f6e67.tar.gz
fetchmail-2ce40ef7d40cf2092df3c17b5cd286417e5f6e67.tar.bz2
fetchmail-2ce40ef7d40cf2092df3c17b5cd286417e5f6e67.zip
Add workaround for b0rked POP3 TOP command in Maillennium servers (comcast.net).
svn path=/branches/BRANCH_6-3/; revision=4606
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 12f2d999..df85e3e6 100644
--- a/pop3.c
+++ b/pop3.c
@@ -611,6 +611,12 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
#endif
set_peek_capable(ctl);
+ /* comcast's Maillennium POP3/PROXY is full of bugs and truncates
+ * TOP replies after c. 80 kByte, so disable TOP. */
+ if (peek_capable && strstr(greeting, "Maillennium POP3/PROXY server")) {
+ report(stdout, GT_("Warning: Maillennium POP3/PROXY server found, using RETR command.\n"));
+ peek_capable = 0;
+ }
/* we're approved */
return(PS_SUCCESS);