diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2011-06-16 21:44:42 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2019-08-25 17:16:35 +0200 |
commit | 5256f6122e9843b1e9988a742ed6c2a4923bc2bd (patch) | |
tree | 851eb2aaedf69adf3f2b7e00fbd22a83fc7705e9 /unmime.c | |
parent | 525a4c43284dbb325e6c628ba26065f6ca23e312 (diff) | |
download | fetchmail-5256f6122e9843b1e9988a742ed6c2a4923bc2bd.tar.gz fetchmail-5256f6122e9843b1e9988a742ed6c2a4923bc2bd.tar.bz2 fetchmail-5256f6122e9843b1e9988a742ed6c2a4923bc2bd.zip |
mimedecode: Fix multipart/mixed detection.
Fixes a regression introduced in release 5.0.0 in March 1999 that was
attributed to Henrik Storner.
(cherry-pick from master, e45e718a80379391f8ba457e64e19f75f061741a)
Diffstat (limited to 'unmime.c')
-rw-r--r-- | unmime.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -459,7 +459,7 @@ int MimeBodyType(char *hdrs, int WantDecode) /* Check Content-Type to see if this is a multipart message */ if ( (CntType != NULL) && - ((strncasecmp(CntType, "multipart/mixed", 16) == 0) || + ((strncasecmp(CntType, "multipart/mixed", 15) == 0) || (strncasecmp(CntType, "message/", 8) == 0)) ) { char *p1 = GetBoundary(CntType); @@ -469,7 +469,6 @@ int MimeBodyType(char *hdrs, int WantDecode) the boundary string */ strcpy(MultipartDelimiter, "--"); strlcat(MultipartDelimiter, p1, sizeof(MultipartDelimiter)); - MultipartDelimiter[sizeof(MultipartDelimiter)-1] = '\0'; BodyType = (MSG_IS_8BIT | MSG_NEEDS_DECODE); } } |