From fedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 25 Jan 1997 13:53:34 +0000 Subject: Corrected 8BITMIME. svn path=/trunk/; revision=825 --- driver.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 38b32542..0cecb23e 100644 --- a/driver.c +++ b/driver.c @@ -638,9 +638,11 @@ char *realname; /* real name of host */ options[0] = '\0'; if ((ctl->server.esmtp_options & ESMTP_8BITMIME) && ctthdr - && (ctt = nxtaddr(ctthdr)) - && (!strcasecmp(ctt,"7BIT")||!strcasecmp(ctt,"8BIT"))) - sprintf(options, " BODY=%s", ctt); + && (ctt = nxtaddr(ctthdr))) + if (!strcasecmp(ctt,"7BIT")) + sprintf(options, " BODY=7BIT", ctt); + else if (!strcasecmp(ctt,"8BIT")) + sprintf(options, " BODY=8BITMIME", ctt); if ((ctl->server.esmtp_options & ESMTP_SIZE) && !delimited) sprintf(options + strlen(options), " SIZE=%d", len); -- cgit v1.2.3