diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-09-23 10:25:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-09-23 10:25:57 +0000 |
commit | 97f6956c21968bb14f204083f182c9ba780fc9ff (patch) | |
tree | 1f365d7fec45f914194c437002fc7e147f047bbb | |
parent | e631821f9a2843185e64c07c2b3e9f8919c0edf8 (diff) | |
download | fetchmail-97f6956c21968bb14f204083f182c9ba780fc9ff.tar.gz fetchmail-97f6956c21968bb14f204083f182c9ba780fc9ff.tar.bz2 fetchmail-97f6956c21968bb14f204083f182c9ba780fc9ff.zip |
Log messages now include the account name and host.
svn path=/trunk/; revision=3471
-rw-r--r-- | driver.c | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -397,8 +397,9 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, if (outlevel > O_SILENT) { report_build(stdout, - _("skipping message %d (%d octets)"), - num, msgsizes[num-1]); + _("skipping message %s@%s:%d (%d octets)"), + ctl->remotename, ctl->server.truename, num, + msgsizes[num-1]); switch (msgcodes[num-1]) { case MSGLEN_INVALID: @@ -431,8 +432,9 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, if (err == PS_TRANSIENT) /* server is probably Exchange */ { report_build(stdout, - _("couldn't fetch headers, msg %d (%d octets)"), - num, msgsizes[num-1]); + _("couldn't fetch headers, message %s@%s:%d (%d octets)"), + ctl->remotename, ctl->server.truename, num, + msgsizes[num-1]); continue; } else if (err != 0) @@ -447,8 +449,9 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, if (outlevel > O_SILENT) { - report_build(stdout, _("reading message %d of %d"), - num,count); + report_build(stdout, _("reading message %s@%s:d of %d"), + ctl->remotename, ctl->server.truename, + num, count); if (len > 0) report_build(stdout, _(" (%d %soctets)"), @@ -583,8 +586,9 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, { if (outlevel >= O_DEBUG) report(stdout, - _("message %d was not the expected length (%d actual != %d expected)\n"), - num, msgblk.msglen, msgsizes[num-1]); + _("message %s@%s:%d was not the expected length (%d actual != %d expected)\n"), + ctl->remotename, ctl->server.truename, num, + msgblk.msglen, msgsizes[num-1]); } /* end-of-message processing starts here */ @@ -646,8 +650,8 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, /* perhaps this as many as we're ready to handle */ if (maxfetch && maxfetch <= *fetches && *fetches < count) { - report(stdout, _("fetchlimit %d reached; %d messages left on server\n"), - maxfetch, count - *fetches); + report(stdout, _("fetchlimit %d reached; %d messages left on server %s account %s\n"), + maxfetch, count - *fetches, ctl->server.truename, ctl->remotename); return(PS_MAXFETCH); } } |