[PATCH 1/7] Fix detection of embedded message/rfc822 in tinymail bs



2009-12-11  Jose Dapena Paz  <jdapena igalia com>

	* Fix error detecting embedded message/rfc822 in bs.
---
 ChangeLog                                  |    6 ++++++
 libtinymail-camel/tny-camel-bs-mime-part.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 78455d5..a93a260 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-11  Jose Dapena Paz  <jdapena igalia com>
+
+	* On getting the decoded stream from bs mime part, reset
+	to offer a stream started in 0 offset.
+	* Fix error detecting embedded message/rfc822 in bs.
+
 2009-12-11  Sergio Villar Senin  <svillar igalia com>
 
 	* camel/providers/pop3/camel-pop3-folder.c (pop3_sync): do expunge
diff --git a/libtinymail-camel/tny-camel-bs-mime-part.c b/libtinymail-camel/tny-camel-bs-mime-part.c
index 9a72911..f7ba017 100644
--- a/libtinymail-camel/tny-camel-bs-mime-part.c
+++ b/libtinymail-camel/tny-camel-bs-mime-part.c
@@ -400,7 +400,7 @@ tny_camel_bs_mime_part_get_parts_default (TnyMimePart *self, TnyList *list)
 		while (part != NULL) {
 			TnyMimePart *mpart;
 
-			if (!strcasecmp (part->content.type, "message") && !strcasecmp (part->content.type, "rfc822")) {
+			if (!strcasecmp (part->content.type, "message") && !strcasecmp (part->content.subtype, "rfc822")) {
 				TnyHeader *header = _tny_camel_bs_msg_header_new (part->envelope, part->octets);
 				mpart = (TnyMimePart *) _tny_camel_bs_msg_new (part,
 					priv->uid, TNY_CAMEL_BS_MIME_PART (self));
-- 
1.6.3.3


--=-7xSGRSdHbBXdNvov60N6
Content-Disposition: attachment; filename*0=0002-On-creating-embedded-message-in-bs-set-as-msg-conten.pat; filename*1=ch
Content-Type: text/x-patch; name="0002-On-creating-embedded-message-in-bs-set-as-msg-conten.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



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