aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 15:58:08 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 15:58:08 +0000
commit04fdca88243f7c19378104764157026d74ce8a6c (patch)
tree3d734e45bdc7130f7bee3dfb8e6221de2d3d2e8f /smtp.c
parent561818f2308e1f1325a944755cb126cf74d6f91a (diff)
downloadfetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.gz
fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.bz2
fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.zip
True internal buffering with stdio!
svn path=/trunk/; revision=478
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/smtp.c b/smtp.c
index f1908f81..558c32b5 100644
--- a/smtp.c
+++ b/smtp.c
@@ -22,7 +22,7 @@ int SMTP_helo(FILE *sockfp,char *host)
{
int ok;
- SockPrintf(sockfp,"HELO %s\r\n", host);
+ fprintf(sockfp,"HELO %s\r\n", host);
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> HELO %s\n", host);
ok = SMTP_ok(sockfp,NULL);
@@ -34,7 +34,7 @@ int SMTP_from(FILE *sockfp, char *from)
{
int ok;
- SockPrintf(sockfp,"MAIL FROM:<%s>\r\n", from);
+ fprintf(sockfp,"MAIL FROM:<%s>\r\n", from);
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> MAIL FROM:<%s>\n", from);
ok = SMTP_ok(sockfp,NULL);
@@ -46,7 +46,7 @@ int SMTP_rcpt(FILE *sockfp, char *to)
{
int ok;
- SockPrintf(sockfp,"RCPT TO:<%s>\r\n", to);
+ fprintf(sockfp,"RCPT TO:<%s>\r\n", to);
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> RCPT TO:<%s>\n", to);
ok = SMTP_ok(sockfp,NULL);
@@ -58,7 +58,7 @@ int SMTP_data(FILE *sockfp)
{
int ok;
- SockPrintf(sockfp,"DATA\r\n");
+ fprintf(sockfp,"DATA\r\n");
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> DATA\n");
ok = SMTP_ok(sockfp,NULL);
@@ -70,7 +70,7 @@ int SMTP_quit(FILE *sockfp)
{
int ok;
- SockPrintf(sockfp,"QUIT\r\n");
+ fprintf(sockfp,"QUIT\r\n");
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> QUIT\n");
ok = SMTP_ok(sockfp,NULL);
@@ -82,7 +82,7 @@ int SMTP_eom(FILE *sockfp)
{
int ok;
- SockPrintf(sockfp,".\r\n");
+ fprintf(sockfp,".\r\n");
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP>. (EOM)\n");
ok = SMTP_ok(sockfp,NULL);
@@ -92,7 +92,7 @@ int SMTP_eom(FILE *sockfp)
void SMTP_rset(FILE *sockfp)
/* send a "RSET" message to the SMTP listener */
{
- SockPrintf(sockfp,"RSET\r\n");
+ fprintf(sockfp,"RSET\r\n");
if (outlevel == O_VERBOSE)
fprintf(stderr, "SMTP> RSET\n");
}
@@ -106,7 +106,7 @@ static int SMTP_check(FILE *sockfp,char *argbuf)
if ((ok = SockGets(buf, sizeof(buf)-1, sockfp)) > 0) {
buf[ok] = '\0';
if (outlevel == O_VERBOSE)
- fprintf(stderr, "SMTP< %s", buf);
+ fprintf(stderr, "SMTP< %s\n", buf);
if (argbuf)
strcpy(argbuf,buf);
if (buf[0] == '1' || buf[0] == '2' || buf[0] == '3')