[Commits] [SCM] claws branch, master, updated. 3.9.2-93-gaa2c8f4
claws at claws-mail.org
claws at claws-mail.org
Fri Oct 18 13:25:30 CEST 2013
The branch master of project "claws" (Claws Mail) has been updated
via aa2c8f4df52dc71b992dd91a08d2e5eb75759e58 (commit)
from 1907a085b18ccb65520d1f51d4f98164b1013496 (commit)
- Log -----------------------------------------------------------------
commit aa2c8f4df52dc71b992dd91a08d2e5eb75759e58
Author: Paul <paul at claws-mail.org>
Date: Fri Oct 18 12:25:23 2013 +0100
before parsing the values, remove whitespace from Content-Type, Content-Transfer-Encoding, and Content-Disposition header values
this fixes broken mailers, e.g. yahoo groups. see http://tools.ietf.org/html/rfc2045#section-6
diff --git a/src/procmime.c b/src/procmime.c
index 43208ed..ca8bcc1 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -2015,6 +2015,7 @@ static int procmime_parse_mimepart(MimeInfo *parent,
mimeinfo->length = length;
if (content_type != NULL) {
+ remove_space(content_type);
procmime_parse_content_type(content_type, mimeinfo);
} else {
mimeinfo->type = MIMETYPE_TEXT;
@@ -2029,6 +2030,7 @@ static int procmime_parse_mimepart(MimeInfo *parent,
}
if (content_encoding != NULL) {
+ remove_space(content_encoding);
procmime_parse_content_encoding(content_encoding, mimeinfo);
} else {
mimeinfo->encoding_type = ENC_UNKNOWN;
@@ -2050,6 +2052,7 @@ static int procmime_parse_mimepart(MimeInfo *parent,
mimeinfo->location = NULL;
if (content_disposition != NULL)
+ remove_space(content_disposition);
procmime_parse_content_disposition(content_disposition, mimeinfo);
else
mimeinfo->disposition = DISPOSITIONTYPE_UNKNOWN;
-----------------------------------------------------------------------
Summary of changes:
src/procmime.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list