aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-06-05 06:57:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-06-05 06:57:59 +0000
commit3e1dcfa582687258c8ef93604bd6882e9b3e40c6 (patch)
tree3b74bc8a5d511e8b900653d9d5a400e583072f1e /driver.c
parent6fa2bfb1da93ab763e3df6d8bf1ae9e0fa6a99a1 (diff)
downloadfetchmail-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.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index d05c8ef3..19c2f411 100644
--- a/driver.c
+++ b/driver.c
@@ -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)
{