[evolution-data-server/gnome-3-30] I#82 - Use uppercase in MIME-Version 1.0 header
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-30] I#82 - Use uppercase in MIME-Version 1.0 header
- Date: Tue, 29 Jan 2019 17:12:20 +0000 (UTC)
commit 7dc4409e997c5028a66063195fe1562c4bddc1d8
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 29 18:10:56 2019 +0100
I#82 - Use uppercase in MIME-Version 1.0 header
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/82
src/camel/camel-mime-message.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-mime-message.c b/src/camel/camel-mime-message.c
index ee8093e72..eb9173f84 100644
--- a/src/camel/camel-mime-message.c
+++ b/src/camel/camel-mime-message.c
@@ -212,8 +212,10 @@ mime_message_ensure_required_headers (CamelMimeMessage *message)
/* FIXME: "To" header needs to be set explicitly as well ... */
- if (!camel_medium_get_header (medium, "Mime-Version"))
- camel_medium_set_header (medium, "Mime-Version", "1.0");
+ /* Use uppercase MIME, to follow RFC 2045 convention (and to not trigger
+ some spam-detection rules on some servers/clients). */
+ if (!camel_medium_get_header (medium, "MIME-Version"))
+ camel_medium_set_header (medium, "MIME-Version", "1.0");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]