[evolution-data-server] Bug 749108 - Embedded inline images pretend message attachments
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 749108 - Embedded inline images pretend message attachments
- Date: Wed, 13 May 2015 16:11:58 +0000 (UTC)
commit 979c6d252956a2e6932c53f692f6a3f524cd0f9c
Author: Milan Crha <mcrha redhat com>
Date: Wed May 13 18:11:36 2015 +0200
Bug 749108 - Embedded inline images pretend message attachments
camel/camel-mime-message.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 023bd49..a633210 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -1310,9 +1310,11 @@ find_attachment (CamelMimeMessage *msg,
*found = (cd->disposition && g_ascii_strcasecmp (cd->disposition, "attachment") == 0);
- for (param = cd->params; param && !(*found); param = param->next) {
- if (param->name && param->value && *param->value && g_ascii_strcasecmp (param->name,
"filename") == 0)
- *found = TRUE;
+ if (!*found && (!cd->disposition || g_ascii_strcasecmp (cd->disposition, "inline") != 0)) {
+ for (param = cd->params; param && !(*found); param = param->next) {
+ if (param->name && param->value && *param->value && g_ascii_strcasecmp
(param->name, "filename") == 0)
+ *found = TRUE;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]