aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-17 03:07:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-17 03:07:21 +0000
commite06845128a04aa301cced173f140bf805ae8d62d (patch)
treea286b323309ac73b6fdf16e1f99063c4dd16c235 /smtp.c
parent64e5fe0021bb87060fe06581dca2dff7801f698e (diff)
downloadfetchmail-e06845128a04aa301cced173f140bf805ae8d62d.tar.gz
fetchmail-e06845128a04aa301cced173f140bf805ae8d62d.tar.bz2
fetchmail-e06845128a04aa301cced173f140bf805ae8d62d.zip
Don't use stderr here.
svn path=/trunk/; revision=642
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/smtp.c b/smtp.c
index 1ef1183c..cddc5183 100644
--- a/smtp.c
+++ b/smtp.c
@@ -27,7 +27,7 @@ int SMTP_helo(FILE *sockfp,char *host)
SockPrintf(sockfp,"HELO %s\r\n", host);
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP> HELO %s\n", host);
+ error(0, 0, "SMTP> HELO %s\n", host);
ok = SMTP_ok(sockfp);
return ok;
}
@@ -39,7 +39,7 @@ int SMTP_from(FILE *sockfp, char *from)
SockPrintf(sockfp,"MAIL FROM:<%s>\r\n", from);
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP> MAIL FROM:<%s>\n", from);
+ error(0, 0, "SMTP> MAIL FROM:<%s>\n", from);
ok = SMTP_ok(sockfp);
return ok;
}
@@ -51,7 +51,7 @@ int SMTP_rcpt(FILE *sockfp, char *to)
SockPrintf(sockfp,"RCPT TO:<%s>\r\n", to);
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP> RCPT TO:<%s>\n", to);
+ error(0, 0, "SMTP> RCPT TO:<%s>\n", to);
ok = SMTP_ok(sockfp);
return ok;
}
@@ -63,7 +63,7 @@ int SMTP_data(FILE *sockfp)
SockPrintf(sockfp,"DATA\r\n");
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP> DATA\n");
+ error(0, 0, "SMTP> DATA\n");
ok = SMTP_ok(sockfp);
return ok;
}
@@ -75,7 +75,7 @@ int SMTP_quit(FILE *sockfp)
SockPrintf(sockfp,"QUIT\r\n");
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP> QUIT\n");
+ error(0, 0, "SMTP> QUIT\n");
ok = SMTP_ok(sockfp);
return ok;
}
@@ -87,7 +87,7 @@ int SMTP_eom(FILE *sockfp)
SockPrintf(sockfp,".\r\n");
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP>. (EOM)\n");
+ error(0, 0, "SMTP>. (EOM)\n");
ok = SMTP_ok(sockfp);
return ok;
}
@@ -104,7 +104,7 @@ int SMTP_ok(FILE *sockfp)
return SM_ERROR;
buf[n] = '\0';
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP< %s\n", buf);
+ error(0, 0, "SMTP< %s\n", buf);
smtp_response = atoi(buf);
if ((buf[0] == '1' || buf[0] == '2' || buf[0] == '3') && buf[3] == ' ')
return SM_OK;