aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-15 22:42:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-15 22:42:01 +0000
commitaf0adb779e91e884d273d987e83c9ab9011ab371 (patch)
treefe5a4bcc8675d2f2da70e202562c55232bd01ed4 /fetchmail.c
parent189eac7905db06ca19fad34fe83181081e09e6f6 (diff)
downloadfetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.tar.gz
fetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.tar.bz2
fetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.zip
#85938: fetchmail asks for a password when using ETRN
svn path=/trunk/; revision=3106
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c
index ce03fc7c..52257dbd 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -324,7 +324,7 @@ int main(int argc, char **argv)
{
if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password)
{
- if (ctl->server.preauthenticate > A_PASSWORD)
+ if (ctl->server.preauthenticate > A_PASSWORD || ctl->server.protocol < P_ETRN)
/* Server won't care what the password is, but there
must be some non-null string here. */
ctl->password = ctl->remotename;
@@ -495,6 +495,7 @@ int main(int argc, char **argv)
{
if (ctl->active && !(implicitmode && ctl->server.skip)
&& ctl->server.preauthenticate <= A_PASSWORD
+ && ctl->server.protocol < P_ETRN
&& !ctl->password)
{
if (!isatty(0))
@@ -1559,7 +1560,7 @@ static void dump_params (struct runctl *runp,
if (ctl->server.skip || outlevel >= O_VERBOSE)
printf(_(" This host %s be queried when no host is specified.\n"),
ctl->server.skip ? _("will not") : _("will"));
- if (ctl->server.preauthenticate <= A_PASSWORD)
+ if (ctl->server.preauthenticate <= A_PASSWORD && ctl->server.protocol < P_ETRN)
{
if (!ctl->password)
printf(_(" Password will be prompted for.\n"));