]> Pileus Git - ~andy/fetchmail/commitdiff
Don't issue AUTH between USER and PASS, some servers choke on this.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 14 Feb 2001 17:23:42 +0000 (17:23 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 14 Feb 2001 17:23:42 +0000 (17:23 -0000)
svn path=/trunk/; revision=3096

pop3.c

diff --git a/pop3.c b/pop3.c
index cab714cb513d8b95437132839aea5456aa60118c..0b23e8cfab398943677a8eab8a2e0b87e98bd2af 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -169,9 +169,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
 
            return(PS_AUTHFAIL);
        }
-       else /* not a CompuServe account */
 #endif /* RPA_ENABLE */
-           ok = gen_transact(sock, "USER %s", ctl->remotename);
 
 #if OPIE_ENABLE
        /* see RFC1938: A One-Time Password System */
@@ -261,6 +259,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
        }
 
        /* ordinary validation, no one-time password or RPA */ 
+       gen_transact(sock, "USER %s", ctl->remotename);
        ok = gen_transact(sock, "PASS %s", ctl->password);
        break;