diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2008-01-11 10:24:31 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2008-01-11 10:24:31 +0000 |
commit | 0efe290298e900a0066ca193cbb958f39542e394 (patch) | |
tree | 84b022965018a6a5ba2544266e1020e90694cc73 /pop3.c | |
parent | 331d2650a061ed2767d8b1f0e6143ce481aed4ce (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |