aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-19 16:46:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-19 16:46:36 +0000
commitd3479000db65f685672d7d7a2a244f1e1e46be90 (patch)
tree54a69ecda5107f18229ac436fc19d96a7e66ef0b /driver.c
parent804b7d2c006daad0f3f9990061a6cda01a398aa7 (diff)
downloadfetchmail-d3479000db65f685672d7d7a2a244f1e1e46be90.tar.gz
fetchmail-d3479000db65f685672d7d7a2a244f1e1e46be90.tar.bz2
fetchmail-d3479000db65f685672d7d7a2a244f1e1e46be90.zip
Error message correction.
svn path=/trunk/; revision=789
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 910bf9fe..0fd2b145 100644
--- a/driver.c
+++ b/driver.c
@@ -705,8 +705,11 @@ char *realname; /* real name of host */
strcat(errmsg, "\n");
- if (sinkfp)
- fputs(errmsg, sinkfp);
+ /* ship out the error line */
+ if (ctl->mda)
+ fwrite(errmsg, 1, strlen(errmsg), sinkfp);
+ else if (sinkfp)
+ SockWrite(errmsg, 1, strlen(errmsg), sinkfp);
}
free_str_list(&xmit_names);