FM v6.4.20 - concatenated log lines
"J.Edner" <[email protected]>
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Organization | private |
| Message-ID | <[email protected]> |
Hi,
I've just compiled and installed Fetchmail 6.4.20 on my server and found
out, that some log lines are missing a new-line at the end, so that they
are concatenated as follows:
fetchmail: 16 messages for XYZ at SERVERfetchmail: reading message
XYZ@SERVER:1 of 16fetchmail: reading message XYZ@SERVER:2 of
16fetchmail: reading message XYZ@SERVER:3 of 16fetchmail: reading
message ...
I checked the source code and saw that a new-line seems to be missing.
After I've applied this small patch all messages are correctly written
to the log file again:
----------
--- a/driver.c. 2021-08-08 17:06:53.756148421 +0200
+++ b/driver.c 2021-08-08 17:09:20.231666827 +0200
@@ -629,7 +629,7 @@ static int fetch_messages(int mailserver
if (outlevel > O_SILENT)
{
- report_build(stdout, GT_("reading message %s@%s:%d of %d"),
+ report_build(stdout, GT_("reading message %s@%s:%d of %d\n"),
ctl->remotename, ctl->server.truename,
num, count);
----------
The result looks as follows now again:
fetchmail: 16 messages for XYZ at SERVER
fetchmail: reading message XYZ@SERVER:1 of 16
fetchmail: reading message XYZ@SERVER:2 of 16
fetchmail: reading message XYZ@SERVER:3 of 16
...
Regards
Juergen