aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-10 18:14:56 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-10 18:14:56 +0000
commite36c1a81e06e59855817f79d9b430763acc4d87a (patch)
tree66a43ab844419b9bd6ff4b7827d1c14b17084e15 /fetchmail.c
parent68bf9602059968fea6bfa657fe3ff4410ad8f85f (diff)
downloadfetchmail-e36c1a81e06e59855817f79d9b430763acc4d87a.tar.gz
fetchmail-e36c1a81e06e59855817f79d9b430763acc4d87a.tar.bz2
fetchmail-e36c1a81e06e59855817f79d9b430763acc4d87a.zip
Added RFC1985 ETRN support.
svn path=/trunk/; revision=861
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 1a2dc8dc..111a52d2 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -300,7 +300,7 @@ int main (int argc, char **argv)
}
}
- if (!ctl->password)
+ if (ctl->server.protocol != P_ETRN && !ctl->password)
{
(void) sprintf(tmpbuf, "Enter password for %s@%s: ",
ctl->remotename, ctl->server.names->id);
@@ -709,6 +709,7 @@ static char *showproto(int proto)
case P_IMAP: return("IMAP"); break;
case P_APOP: return("APOP"); break;
case P_RPOP: return("RPOP"); break;
+ case P_ETRN: return("ETRN"); break;
default: return("unknown?!?"); break;
}
}
@@ -753,6 +754,8 @@ static int query_host(struct query *ctl)
case P_IMAP:
return(doIMAP(ctl));
break;
+ case P_ETRN:
+ return(doETRN(ctl));
default:
error(0, 0, "unsupported protocol selected.");
return(PS_PROTOCOL);