When the "keep" option is used with IMAP, syslog is set, and
verbose is not set, these messages are logged every time fetchmail
checks the server:
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:1 (2667 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:2 (697 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:3 (11309 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:4 (19469 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:5 (170029 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:6 (3571 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:7 (3244 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:8 (717 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:9 (4383 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:10 (3676 octets) not
flushed
Feb 18 08:44:31 eeyore fetchmail[21810]: skipping message
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:11 (4840 octets) not
flushed
As you can see, that makes the syslog file fill up quickly with
useless messages.
Attached is a patch that turns these off for non-verbose usage
as well as these messages:
Feb 18 08:45:07 eeyore fetchmail[21978]: sleeping at Mon Feb 18 08:45:07 2002
Feb 18 08:46:07 eeyore fetchmail[21978]: 700 messages (700 seen) for ms19057 at
uswaumsx06medge.med.ge.com.
That way, the only time fetchmail will log something aside from
startup/shutdown is when it actually finds a new message to download.
Thanks,
Ben
OS: Sun Solaris 2.6
Compiler: gcc --version 2.95.2
greeting: OK Microsoft Exchange IMAP4rev1 server version 5.5.2654.31
forwarder: sendmail (don't know how to determine version, but it's
what came with Solaris)
command-line options used: (none)
fetchmail -V
This is fetchmail release 5.9.5+NLS
SunOS eeyore 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-60
Taking options from command line and /home/benh/.fetchmailrc
Poll interval is 60 seconds
Idfile is /home/benh/.fetchids
Progress messages will be logged via syslog
Fetchmail will forward misaddressed multidrop messages to benh.
Options for retrieving from
ms19057(_at_)uswaumsx06medge(_dot_)med(_dot_)ge(_dot_)com:
True name of server is uswaumsx06medge.med.ge.com.
Password will be prompted for.
Protocol is auto.
All available authentication methods will be tried.
Server nonresponse timeout is 300 seconds (default).
Default mailbox selected.
Only new messages will be retrieved (--all off).
Fetched messages will be kept on the server (--keep on).
Old messages will not be flushed before message retrieval (--flush off).
Rewrite of server-local addresses is enabled (--norewrite off).
Carriage-return stripping is disabled (stripcr off).
Carriage-return forcing is disabled (forcecr off).
Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
MIME decoding is disabled (mimedecode off).
Idle after poll is disabled (idle off).
Nonempty Status lines will be kept (dropstatus off)
Delivered-To lines will be kept (dropdelivered off)
Messages will be SMTP-forwarded to: localhost (default)
Recognized listener spam block responses are: 571 550 501 554
Single-drop mode: 1 local name(s) recognized.
--
Ben Hochstedler GE Medical Systems Information Technologies
Software Engineer, Clinical Systems www.gemedicalsystems.com
ben(_dot_)hochstedler(_at_)med(_dot_)ge(_dot_)com ICQ: 15469308
AIM/Yahoo: hochstrb
Phone: 414-362-3317 Fax: 414-362-3389 Dial-comm: *8 401-3317
--- fetchmail.c.~1~ Thu Nov 8 12:33:45 2001
+++ fetchmail.c Mon Feb 18 12:34:00 2002
@@ -706,7 +706,7 @@
exit(PS_AUTHFAIL);
}
- if (outlevel > O_SILENT)
+ if (outlevel >= O_VERBOSE)
report(stdout,
GT_("sleeping at %s\n"), timestamp());
--- driver.c.~1~ Sun Sep 30 21:50:56 2001
+++ driver.c Mon Feb 18 12:37:40 2002
@@ -417,6 +417,7 @@
mark_oversized(ctl, num, msgsizes[num-1]);
if (outlevel > O_SILENT)
{
+ if (outlevel >= O_VERBOSE)
report_build(stdout,
GT_("skipping message %s(_at_)%s:%d (%d octets)"),
ctl->remotename, ctl->server.truename, num,
@@ -665,7 +666,7 @@
delete_str(&ctl->newsaved, num);
#endif /* POP3_ENABLE */
}
- else if (outlevel > O_SILENT)
+ else if (outlevel >= O_VERBOSE)
report_complete(stdout, GT_(" not flushed\n"));
/* perhaps this as many as we're ready to handle */
@@ -1203,7 +1204,7 @@
#endif /* HAVE_SNPRINTF */
GT_("%s at %s"),
ctl->remotename, ctl->server.truename);
- if (outlevel > O_SILENT)
+ if (outlevel >= O_VERBOSE)
{
if (count == -1) /* only used for ETRN */
report(stdout, GT_("Polling %s\n"),
ctl->server.truename);