diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-08 09:18:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-08 09:18:24 +0000 |
commit | c25ac7a5e2b2bc37d6022a038e8ed2ab829c4be5 (patch) | |
tree | c417a295165ca5442af041d86b8d2642391819c4 | |
parent | 2edb10701e58c47a83f88ccb2362f7b9c6bcee6e (diff) | |
download | fetchmail-c25ac7a5e2b2bc37d6022a038e8ed2ab829c4be5.tar.gz fetchmail-c25ac7a5e2b2bc37d6022a038e8ed2ab829c4be5.tar.bz2 fetchmail-c25ac7a5e2b2bc37d6022a038e8ed2ab829c4be5.zip |
Better logging of unmatched names.
svn path=/trunk/; revision=508
-rw-r--r-- | driver.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -359,10 +359,19 @@ struct query *ctl; /* query control record */ /* if nothing supplied localnames, default appropriately */ if (!xmit_names) + { + char *dflt; + if (getuid() == 0) - save_uid(&xmit_names, -1, ctl->remotename); + dflt = ctl->remotename; else - save_uid(&xmit_names, -1, user); + dflt = user; + save_uid(&xmit_names, -1, dflt); + if (outlevel == O_VERBOSE) + fprintf(stderr, + "fetchmail: no local matches, forwarding to %s\n", + dflt); + } /* time to address the message */ if (ctl->mda[0]) /* we have a declared MDA */ @@ -774,13 +783,10 @@ const struct method *proto; /* protocol method table */ vtalarm(ctl->timeout); if (ok != 0) goto cleanUp; + delete_uid(&ctl->newsaved, num); } else if (outlevel > O_SILENT) - { - /* nuke it from the unseen-messages list */ - delete_uid(&ctl->newsaved, num); fprintf(stderr, " not flushed\n"); - } } /* remove all messages flagged for deletion */ |