aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2008-01-11 10:24:31 +0000
committerMatthias Andree <matthias.andree@gmx.de>2008-01-11 10:24:31 +0000
commit0efe290298e900a0066ca193cbb958f39542e394 (patch)
tree84b022965018a6a5ba2544266e1020e90694cc73 /pop3.c
parent331d2650a061ed2767d8b1f0e6143ce481aed4ce (diff)
downloadfetchmail-0efe290298e900a0066ca193cbb958f39542e394.tar.gz
fetchmail-0efe290298e900a0066ca193cbb958f39542e394.tar.bz2
fetchmail-0efe290298e900a0066ca193cbb958f39542e394.zip
Undocumented and untested hack: setting FETCHMAIL_POP3_FORCE_RETR in the
environment forces fetchmail to use RETR instead of TOP for POP3. svn path=/branches/BRANCH_6-3/; revision=5151
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 9b101f03..84dbc69c 100644
--- a/pop3.c
+++ b/pop3.c
@@ -329,6 +329,12 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
/* Set this up before authentication quits early. */
set_peek_capable(ctl);
+
+ /* Hack: allow user to force RETR. */
+ if (peek_capable && getenv("FETCHMAIL_POP3_FORCE_RETR")) {
+ peek_capable = 0;
+ }
+
/*
* The "Maillennium POP3/PROXY server" deliberately truncates
* TOP replies after c. 64 or 80 kByte (we have varying reports), so