From c3bebbaefbf978f496a2fb9662bbd132791ae2d6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 11 Nov 1996 14:56:29 +0000 Subject: Eliminate the most common configuration error. svn path=/trunk/; revision=530 --- driver.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'driver.c') 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 */ -- cgit v1.2.3