aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c8
1 files changed, 5 insertions, 3 deletions
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);