aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-11 14:56:29 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-11 14:56:29 +0000
commitc3bebbaefbf978f496a2fb9662bbd132791ae2d6 (patch)
tree442733faa860984f0320303b5cb19318357a3102 /driver.c
parentcc413597e0a7954f090fc32851aff958b9d41a6d (diff)
downloadfetchmail-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.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/driver.c b/driver.c
index 65b34b6e..923613a7 100644
--- a/driver.c
+++ b/driver.c
@@ -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 */