[PATCH] consider attachments with filenames as attachments in TnyCamelBSMimePart
- From: Rob Taylor <rob taylor codethink co uk>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: [PATCH] consider attachments with filenames as attachments in TnyCamelBSMimePart
- Date: Tue, 13 May 2008 19:54:33 +0100
This patch modifies the is_attachment heuristic in TnyCamelBSMimePart so
that inline mime parts with filenames are considered attachments.
Thanks,
Rob
diff --git a/libtinymail-camel/tny-camel-bs-mime-part.c b/libtinymail-camel/tny-camel-bs-mime-part.c
index 8933d72..69ce964 100644
--- a/libtinymail-camel/tny-camel-bs-mime-part.c
+++ b/libtinymail-camel/tny-camel-bs-mime-part.c
@@ -389,10 +389,10 @@ tny_camel_bs_mime_part_is_attachment_default (TnyMimePart *self)
* not actually have this header, as not all E-mail clients add it) */
if (contdisp) {
- if (camel_strstrcase (contdisp, "inline"))
- return FALSE;
if (camel_strstrcase (contdisp, "attachment"))
return TRUE;
+ if (camel_strstrcase (contdisp, "inline") && mimeparam_get_value_for (priv->bodystructure->disposition.params, "FILENAME") == NULL)
+ return FALSE;
}
return !((camel_strcase_equal (priv->bodystructure->content.type, "application") &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]