From 04fdca88243f7c19378104764157026d74ce8a6c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 4 Nov 1996 15:58:08 +0000 Subject: True internal buffering with stdio! svn path=/trunk/; revision=478 --- smtp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'smtp.c') 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') -- cgit v1.2.3