[PATCH 1/3] Fix bodystruct parser to also decode properly video attachments



	* libtinymail-camel/camel-lite/bs/bodystruct.c: also
	consider VIDEO mime types with file/attachment format.
---
 ChangeLog                                    |    5 +++++
 libtinymail-camel/camel-lite/bs/bodystruct.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 313b817..ed16ab8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-22  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymail-camel/camel-lite/bs/bodystruct.c: also
+	consider VIDEO mime types with file/attachment format.
+
 2009-12-21  Jose Dapena Paz  <jdapena igalia com>
 
 	* libtinymail-camel/tny-camel-bs-mime-part.c: fix
diff --git a/libtinymail-camel/camel-lite/bs/bodystruct.c b/libtinymail-camel/camel-lite/bs/bodystruct.c
index a9859c8..de4d1cf 100644
--- a/libtinymail-camel/camel-lite/bs/bodystruct.c
+++ b/libtinymail-camel/camel-lite/bs/bodystruct.c
@@ -848,6 +848,7 @@ bodystruct_part_decode (unsigned char **in, unsigned char *inend, bodystruct_t *
 
 		} else if (!strcasecmp (part->content.type, "APPLICATION")||
 				!strcasecmp (part->content.type, "IMAGE") ||
+				!strcasecmp (part->content.type, "VIDEO") ||
 				!strcasecmp (part->content.type, "AUDIO"))
 		{
 
-- 
1.6.3.3


--=-Iwo0I4zw/MZdOy8D2GEc
Content-Disposition: attachment; filename*0=0002-Be-careful-to-also-fetch-properly-the-first-level-te.pat; filename*1=ch
Content-Type: text/x-patch; name="0002-Be-careful-to-also-fetch-properly-the-first-level-te.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]