From f422fc04a9043842658d43e7baf58e60052b225c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 15 Jun 1999 02:47:11 +0000 Subject: Attempt to fix a mimedecode bug. svn path=/trunk/; revision=2503 --- driver.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index e5a32231..2be446c4 100644 --- a/driver.c +++ b/driver.c @@ -459,6 +459,13 @@ static int readheaders(int sock, } } + /* + * Decode MIME encoded headers. We MUST do this before + * looking at the Content-Type / Content-Transfer-Encoding + * headers (RFC 2046). + */ + if (ctl->mimedecode) + UnMimeHeader(buf); line = (char *) realloc(line, strlen(line) + strlen(buf) +1); @@ -764,13 +771,6 @@ static int readheaders(int sock, * In fact we have to, as this will tell us where to forward to. */ - /* Decode MIME encoded headers. We MUST do this before - * looking at the Content-Type / Content-Transfer-Encoding - * headers (RFC 2046). - */ - if (ctl->mimedecode) { - UnMimeHeader(msgblk.headers); - } /* Check for MIME headers indicating possible 8-bit data */ ctl->mimemsg = MimeBodyType(msgblk.headers, ctl->mimedecode); -- cgit v1.2.3