diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 12:43:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 12:43:04 +0000 |
commit | 1c0b7916d51f2626f7c49a6ba9c4bf63dce9dfda (patch) | |
tree | 7035d59f12857174038ce8f93f7cd694f59cad0b /driver.c | |
parent | 323f294e15139658d8e4a496ca30a345d3688459 (diff) | |
download | fetchmail-1c0b7916d51f2626f7c49a6ba9c4bf63dce9dfda.tar.gz fetchmail-1c0b7916d51f2626f7c49a6ba9c4bf63dce9dfda.tar.bz2 fetchmail-1c0b7916d51f2626f7c49a6ba9c4bf63dce9dfda.zip |
Jan Klaverstijn's verbosity patch.
svn path=/trunk/; revision=3760
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -420,7 +420,16 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, { if ((msgcodes[num-1] == MSGLEN_TOOLARGE) && !check_only) mark_oversized(ctl, num, msgsizes[num-1]); - if (outlevel > O_SILENT) + /* 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 being old. + */ + if ( (outlevel >= O_VERBOSE) || + (outlevel > O_SILENT && (!run.use_syslog || msgcodes[num-1] != MSGLEN_OLD)) + ) { report_build(stdout, GT_("skipping message %s@%s:%d (%d octets)"), @@ -697,7 +706,16 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, delete_str(&ctl->newsaved, num); #endif /* POP3_ENABLE */ } - else if (outlevel > O_SILENT) + 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 || msgcodes[num-1] != MSGLEN_OLD)) + ) report_complete(stdout, GT_(" not flushed\n")); /* perhaps this as many as we're ready to handle */ |