diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-06-11 04:28:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-06-11 04:28:16 +0000 |
commit | 5c60df97af1da3cf699a78ba0bd7f9f9d751d8b0 (patch) | |
tree | 657366d4a2494cb92c1e1dfd0cbc36e2fa893abb /fetchmail.c | |
parent | 566cab9427e5d6ce8bdff82d911ec76662ca7927 (diff) | |
download | fetchmail-5c60df97af1da3cf699a78ba0bd7f9f9d751d8b0.tar.gz fetchmail-5c60df97af1da3cf699a78ba0bd7f9f9d751d8b0.tar.bz2 fetchmail-5c60df97af1da3cf699a78ba0bd7f9f9d751d8b0.zip |
Normal build is now with POP2 disabled and optimization on.
svn path=/trunk/; revision=1080
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index b0c0f925..2f8abdba 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -736,7 +736,9 @@ static char *showproto(int proto) switch (proto) { case P_AUTO: return("auto"); break; +#ifdef POP2_ENABLE case P_POP2: return("POP2"); break; +#endif /* POP2_ENABLE */ case P_POP3: return("POP3"); break; case P_IMAP: return("IMAP"); break; case P_IMAP_K4: return("IMAP-K4"); break; @@ -750,7 +752,11 @@ static char *showproto(int proto) /* * Sequence of protocols to try when autoprobing, most capable to least. */ +#ifdef POP2_ENABLE static const int autoprobe[] = {P_IMAP, P_POP3, P_POP2}; +#else +static const int autoprobe[] = {P_IMAP, P_POP3}; +#endif /* POP2_ENABLE */ static int query_host(struct query *ctl) /* perform fetch transaction with single host */ @@ -790,7 +796,12 @@ static int query_host(struct query *ctl) return(st); break; case P_POP2: +#ifdef POP2_ENABLE return(doPOP2(ctl)); +#else + fprintf(stderr, "POP2 support is not configured.\n"); + return(PS_PROTOCOL); +#endif /* POP2_ENABLE */ break; case P_POP3: case P_APOP: |