aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-20 22:49:45 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-20 22:49:45 +0000
commit296fc7f92732fe2ef1a4787591f458b6065f6c15 (patch)
tree7ebbc7f2da34d885c3c2f37c54c26ff108b71ae5 /fetchmail.c
parent3162ca707f5aca13d341289b28cd65e80a5696bb (diff)
downloadfetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.tar.gz
fetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.tar.bz2
fetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.zip
RPOP support is back.
svn path=/trunk/; revision=791
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 0ae0fe4c..f762a873 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -647,6 +647,13 @@ static int load_params(int argc, char **argv, int optind)
ctl->server.names->id);
exit(PS_SYNTAX);
}
+ if (ctl->server.protocol == P_RPOP && ctl->server.port >= 1024)
+ {
+ (void) fprintf(stderr,
+ "%s configuration invalid, RPOP requires a privileged port",
+ ctl->server.names->id);
+ exit(PS_SYNTAX);
+ }
}
}
@@ -702,6 +709,7 @@ static char *showproto(int proto)
case P_POP3: return("POP3"); break;
case P_IMAP: return("IMAP"); break;
case P_APOP: return("APOP"); break;
+ case P_RPOP: return("RPOP"); break;
default: return("unknown?!?"); break;
}
}
@@ -740,6 +748,7 @@ static int query_host(struct query *ctl)
break;
case P_POP3:
case P_APOP:
+ case P_RPOP:
return(doPOP3(ctl));
break;
case P_IMAP:
@@ -777,6 +786,8 @@ void dump_params (struct query *ctl)
else if (outlevel == O_VERBOSE)
if (ctl->server.protocol == P_APOP)
printf(" APOP secret = '%s'.\n", visbuf(ctl->password));
+ else if (ctl->server.protocol == P_RPOP)
+ printf(" RPOP id = '%s'.\n", visbuf(ctl->password));
else
printf(" Password = '%s'.\n", visbuf(ctl->password));
if (ctl->server.protocol == P_POP3