diff options
author | Sunil Shetye <sunilshetye@rocketmail.com> | 2011-05-04 23:21:11 +0530 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2011-05-11 13:42:30 +0200 |
commit | 1cf7053cbc3e3fbacb9770f3532d69192102a842 (patch) | |
tree | 16029ef305e269a92baa759b3c16beedfa0a8a2b /driver.c | |
parent | c27d33adea16dce68cb4a563419b543441948c6b (diff) | |
download | fetchmail-1cf7053cbc3e3fbacb9770f3532d69192102a842.tar.gz fetchmail-1cf7053cbc3e3fbacb9770f3532d69192102a842.tar.bz2 fetchmail-1cf7053cbc3e3fbacb9770f3532d69192102a842.zip |
Do not print "skipping message" for old messages even in verbose mode.
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 28 |
1 files changed, 10 insertions, 18 deletions
@@ -511,14 +511,11 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, } if (msgcode == MSGLEN_OLD) { - /* To avoid flooding the syslog when using --keep, - * report "Skipped message" only when: - * 1) --verbose is on, or - * 2) fetchmail does not use syslog - */ - if ( (outlevel >= O_VERBOSE) || - (outlevel > O_SILENT && !run.use_syslog) - ) + /* + * To avoid flooding the logs when using --keep, report + * skipping for old messages only when --flush is on. + */ + if (outlevel > O_SILENT && ctl->flush) { report_build(stdout, GT_("skipping message %s@%s:%d"), @@ -810,16 +807,11 @@ flagthemail: } else { - if ( (outlevel >= O_VERBOSE) || - /* To avoid flooding the syslog when using --keep, - * report "Skipped message" only when: - * 1) --verbose is on, or - * 2) fetchmail does not use syslog, or - * 3) the message was skipped for some other - * reason than just being old. - */ - (outlevel > O_SILENT && (!run.use_syslog || msgcode != MSGLEN_OLD)) - ) + /* + * To avoid flooding the logs when using --keep, report + * skipping of new messages only. + */ + if (outlevel > O_SILENT && msgcode != MSGLEN_OLD) report_complete(stdout, GT_(" not flushed\n")); /* maybe we mark this message as seen now? */ |