diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-26 20:37:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-26 20:37:40 +0000 |
commit | 3b2865fb3e5231f2a3e88f98424e2747d58bdecf (patch) | |
tree | e7d7367b6d8f70691a9bb34ca97b41c8ac4a7576 /fetchmail.c | |
parent | 14e787fa91881b89ac043c1f0b94fc234affb8a7 (diff) | |
download | fetchmail-3b2865fb3e5231f2a3e88f98424e2747d58bdecf.tar.gz fetchmail-3b2865fb3e5231f2a3e88f98424e2747d58bdecf.tar.bz2 fetchmail-3b2865fb3e5231f2a3e88f98424e2747d58bdecf.zip |
Prevent Pehr Anderson's goof.
svn path=/trunk/; revision=2613
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c index ff465784..1ff5fd9a 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1164,11 +1164,7 @@ static int load_params(int argc, char **argv, int optind) char *cp; if (!(cp = strrchr(idp->id, '/')) || -#ifdef INET6 - (strcmp(++cp, SMTP_PORT) == 0)) -#else (atoi(++cp) == SMTP_PORT)) -#endif /* INET6 */ { (void) fprintf(stderr, _("%s configuration invalid, LMTP can't use default SMTP port\n"), @@ -1178,6 +1174,17 @@ static int load_params(int argc, char **argv, int optind) } } #endif /* !INET6 */ + + /* + * "I beg to you, have mercy on the week minds like myself." + * wrote Pehr Anderson. Your petition is granted. + */ + if (ctl->fetchall && ctl->keep && run.poll_interval && !nodetach) + { + (void) fprintf(stderr, + _("Both fetchall and keep on in daemon mode is a mistake!\n")); + exit(PS_SYNTAX); + } } } |