aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-03-27 15:01:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-03-27 15:01:03 +0000
commit1c18a497c8b2cf9383c6269920413cbed49683d3 (patch)
tree3b22731b9aa3d8e6d2ef382e57f3075c861ea1b5
parent4502b4ea97d4b9ab7e87e50247cfa5a07d01f3bb (diff)
downloadfetchmail-1c18a497c8b2cf9383c6269920413cbed49683d3.tar.gz
fetchmail-1c18a497c8b2cf9383c6269920413cbed49683d3.tar.bz2
fetchmail-1c18a497c8b2cf9383c6269920413cbed49683d3.zip
Fix PGP-mimedecode.
svn path=/trunk/; revision=2413
-rw-r--r--NEWS1
-rw-r--r--unmime.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index f83d5e00..41fd79de 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ fetchmail-5.0.0 ():
* Eliminate a realloc error in fetchmail -v -v progress message generation.
* Spanish-language update by Javier Kohen.
* Danish summary and description for specgen.sh.
+* Henrik Storner's fix for the PGP/mimedecode problem.
There are 263 people on fetchmail-friends and 361 on fetchmail-announce.
diff --git a/unmime.c b/unmime.c
index 7d60b546..6e7362b4 100644
--- a/unmime.c
+++ b/unmime.c
@@ -45,7 +45,6 @@ static int qp_char(unsigned char c1, unsigned char c2, unsigned char *c_out)
}
-
/*
* Routines to decode MIME QP-encoded headers, as per RFC 2047.
*/
@@ -457,7 +456,7 @@ int MimeBodyType(unsigned char *hdrs, int WantDecode)
/* Check Content-Type to see if this is a multipart message */
if ( (CntType != NULL) &&
- ((strncasecmp(CntType, "multipart/", 10) == 0) ||
+ ((strncasecmp(CntType, "multipart/mixed", 16) == 0) ||
(strncasecmp(CntType, "message/", 8) == 0)) ) {
char *p1 = GetBoundary(CntType);