aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-25 13:53:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-25 13:53:34 +0000
commitfedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436 (patch)
treea4acfe56f8bc61247964398331404f3f41fe89f7 /driver.c
parentb6f3877eda97e6e610808c255612769c92181be4 (diff)
downloadfetchmail-fedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436.tar.gz
fetchmail-fedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436.tar.bz2
fetchmail-fedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436.zip
Corrected 8BITMIME.
svn path=/trunk/; revision=825
Diffstat (limited to 'driver.c')
-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);