diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-05 06:57:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-05 06:57:59 +0000 |
commit | 3e1dcfa582687258c8ef93604bd6882e9b3e40c6 (patch) | |
tree | 3b74bc8a5d511e8b900653d9d5a400e583072f1e /driver.c | |
parent | 6fa2bfb1da93ab763e3df6d8bf1ae9e0fa6a99a1 (diff) | |
download | fetchmail-3e1dcfa582687258c8ef93604bd6882e9b3e40c6.tar.gz fetchmail-3e1dcfa582687258c8ef93604bd6882e9b3e40c6.tar.bz2 fetchmail-3e1dcfa582687258c8ef93604bd6882e9b3e40c6.zip |
Tracepolls switch implemented.
svn path=/trunk/; revision=3337
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1067,15 +1067,18 @@ static int readheaders(int sock, /* * This header is technically invalid under RFC822. * POP3, IMAP, etc. are not legal mail-parameter values. - * - * We used to include ctl->remotename in this log line, - * but this can be secure information that would be bad - * to reveal. */ - sprintf(buf, "\tby %s with %s (fetchmail-%s)\r\n", + sprintf(buf, "\tby %s with %s (fetchmail-%s)", fetchmailhost, protocol->name, VERSION); + if (ctl->tracepolls) + { + sprintf(buf + strlen(buf), " polling %s account %s", + ctl->server.pollname, + ctl->remotename); + } + strcat(buf, "\r\n"); n = stuffline(ctl, buf); if (n != -1) { |