aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-28 05:09:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-28 05:09:28 +0000
commit24b97bc83caba46d9e61914c254b20965d262e93 (patch)
tree6507c634ec43a5963fc7e695e4bfb720240d2733
parent7ddb8e6a67b11c7818cb74aede06dbee19a27c69 (diff)
downloadfetchmail-24b97bc83caba46d9e61914c254b20965d262e93.tar.gz
fetchmail-24b97bc83caba46d9e61914c254b20965d262e93.tar.bz2
fetchmail-24b97bc83caba46d9e61914c254b20965d262e93.zip
Added some more intelligible debug messages.
svn path=/trunk/; revision=409
-rw-r--r--driver.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 928a8737..d1867394 100644
--- a/driver.c
+++ b/driver.c
@@ -611,7 +611,10 @@ struct query *ctl; /* query control record */
#endif /* HAVE_SETEUID */
if (mboxfd < 0)
+ {
+ fprintf(stderr, "fetchmail: MDA open failed\n");
return(PS_IOERR);
+ }
}
else
{
@@ -623,15 +626,22 @@ struct query *ctl; /* query control record */
close(mboxfd);
mboxfd = -1;
free_uid_list(&xmit_names);
+ fprintf(stderr, "fetchmail: SMTP connect failed\n");
return(PS_SMTP);
}
if (SMTP_from(mboxfd, nxtaddr(fromhdr)) != SM_OK)
+ {
+ fprintf(stderr, "fetchmail: SMTP listener is confused\n");
return(PS_SMTP);
+ }
for (idp = xmit_names; idp; idp = idp->next)
if (SMTP_rcpt(mboxfd, idp->id) != SM_OK)
+ {
+ fprintf(stderr, "fetchmail: SMTP listener is upset\n");
return(PS_SMTP);
+ }
SMTP_data(mboxfd);
if (outlevel == O_VERBOSE)
@@ -659,7 +669,7 @@ struct query *ctl; /* query control record */
{
free(headers);
headers = NULL;
- perror("gen_readmsg: writing RFC822 headers");
+ perror("fetchmail: writing RFC822 headers");
return(PS_IOERR);
}
else if (outlevel == O_VERBOSE)
@@ -687,7 +697,7 @@ struct query *ctl; /* query control record */
free(bufp);
if (n < 0)
{
- perror("gen_readmsg: writing message text");
+ perror("fetchmail: writing message text");
return(PS_IOERR);
}
else if (outlevel == O_VERBOSE)