aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-12 16:36:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-12 16:36:47 +0000
commitffaee92b2a0699ed5f638224bc69600cb523b906 (patch)
treefb716d7e66ffaa0905068d111f125205dc61eafc /driver.c
parent26aa3b67841443cd7ebee8dc5397e351c94046e9 (diff)
downloadfetchmail-ffaee92b2a0699ed5f638224bc69600cb523b906.tar.gz
fetchmail-ffaee92b2a0699ed5f638224bc69600cb523b906.tar.bz2
fetchmail-ffaee92b2a0699ed5f638224bc69600cb523b906.zip
Better debugging of SMTP stuff.
svn path=/trunk/; revision=90
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 4718d35b..86bd3e93 100644
--- a/driver.c
+++ b/driver.c
@@ -657,6 +657,8 @@ int rewrite;
return(PS_SMTP);
#endif /* SMTP_RESEND */
SMTP_data(mboxfd);
+ if (outlevel == O_VERBOSE)
+ fputs("SMTP> ", stderr);
break;
case TO_FOLDER:
@@ -691,6 +693,8 @@ int rewrite;
perror("gen_readmsg: writing RFC822 headers");
return(PS_IOERR);
}
+ else if (outlevel == O_VERBOSE)
+ fputs("#", stderr);
free(headers);
headers = NULL;
}
@@ -701,6 +705,8 @@ int rewrite;
perror("gen_readmsg: writing message text");
return(PS_IOERR);
}
+ else if (outlevel == O_VERBOSE)
+ fputc('*', stderr);
skipwrite:;
@@ -714,6 +720,9 @@ int rewrite;
lines++;
}
+ if (outlevel == O_VERBOSE)
+ fputc('\n', stderr);
+
/* write message terminator, if any */
switch (output)
{