aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-08-01 00:06:36 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-08-01 00:06:36 +0000
commit3043f194879fa7fe42736df9523a67088deed806 (patch)
tree108770bb7a94c488c1c05fda2bdd6bdf1a0df95e
parent126ba46de715400250328df555c7ab5687404e41 (diff)
downloadfetchmail-3043f194879fa7fe42736df9523a67088deed806.tar.gz
fetchmail-3043f194879fa7fe42736df9523a67088deed806.tar.bz2
fetchmail-3043f194879fa7fe42736df9523a67088deed806.zip
Keep all non-error syslog messages on one line per downloaded message.
svn path=/branches/BRANCH_6-3/; revision=4874
-rw-r--r--NEWS1
-rw-r--r--driver.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index ae074d55..3b37047d 100644
--- a/NEWS
+++ b/NEWS
@@ -98,6 +98,7 @@ fetchmail 6.3.5 (not yet released):
(undocumented) and non-root users. See also the deprecation warning above.
* When a connection fails, log not only the IP address, but also host and
service name.
+* Keep syslog output at one line per message (this works if no errors occur).
# CHANGES:
* Rename all fetchmail-internal lock_* functions to fm_lock_*. Obsoletes
diff --git a/driver.c b/driver.c
index 8ffd8e98..5d765986 100644
--- a/driver.c
+++ b/driver.c
@@ -615,8 +615,6 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
: GT_(" (%d header octets)"), len);
if (outlevel >= O_VERBOSE)
report_complete(stdout, "\n");
- else
- report_complete(stdout, " ");
}
/*
@@ -683,8 +681,8 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
if (len == -1)
len = msgsize - msgblk.msglen;
if (outlevel > O_SILENT && !wholesize)
- report_complete(stdout,
- GT_(" (%d body octets) "), len);
+ report_build(stdout,
+ GT_(" (%d body octets)"), len);
}
/* process the body now */
@@ -776,7 +774,7 @@ flagthemail:
if (retained)
{
if (outlevel > O_SILENT)
- report(stdout, GT_(" retained\n"));
+ report_complete(stdout, GT_(" retained\n"));
}
else if (ctl->server.base_protocol->delete_msg
&& !suppress_delete