diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-11 14:56:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-11 14:56:29 +0000 |
commit | c3bebbaefbf978f496a2fb9662bbd132791ae2d6 (patch) | |
tree | 442733faa860984f0320303b5cb19318357a3102 /driver.c | |
parent | cc413597e0a7954f090fc32851aff958b9d41a6d (diff) | |
download | fetchmail-c3bebbaefbf978f496a2fb9662bbd132791ae2d6.tar.gz fetchmail-c3bebbaefbf978f496a2fb9662bbd132791ae2d6.tar.bz2 fetchmail-c3bebbaefbf978f496a2fb9662bbd132791ae2d6.zip |
Eliminate the most common configuration error.
svn path=/trunk/; revision=530
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -365,24 +365,18 @@ struct query *ctl; /* query control record */ find_server_names(cchdr, ctl, &xmit_names); find_server_names(bcchdr, ctl, &xmit_names); if (!xmit_names) + { no_local_matches = TRUE; + save_uid(&xmit_names, -1, user); + if (outlevel == O_VERBOSE) + fprintf(stderr, + "fetchmail: no local matches, forwarding to %s\n", + user); + } } else /* it's a single-drop box, use first localname */ #endif /* HAVE_RES_SEARCH */ - { - if (ctl->localnames) - save_uid(&xmit_names, -1, ctl->localnames->id); - } - - /* if nothing supplied localnames, default appropriately */ - if (!xmit_names) - { - save_uid(&xmit_names, -1, user); - if (outlevel == O_VERBOSE) - fprintf(stderr, - "fetchmail: no local matches, forwarding to %s\n", - user); - } + save_uid(&xmit_names, -1, ctl->localnames->id); /* time to address the message */ if (ctl->mda[0]) /* we have a declared MDA */ |