Patch: camel header decode also splits addresses with semi-colon



	Hi,

	This patch is for adding semi-colon as a valid character for splitting
addresses in camel_header_decode_address.

Changelog entry:
* libtinymail-camel/camel-lite/camel/camel-mime-utils.c
  (camel_header_address_decode): also consider semi-colon
  for reading split addresses.

-- 
José Dapena Paz <jdapena igalia com>
Igalia
diff --git a/ChangeLog b/ChangeLog
index 33b6c1e..a58ce4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-30  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymail-camel/camel-lite/camel/camel-mime-utils.c
+	(camel_header_address_decode): also consider semi-colon
+	for reading split addresses.
+
 2009-03-24  Jose Dapena Paz  <jdapena igalia com>
 
 	* libtinymailui-gtk/tny-gtk-folder-list-store.[ch]: added
diff --git a/libtinymail-camel/camel-lite/camel/camel-mime-utils.c b/libtinymail-camel/camel-lite/camel/camel-mime-utils.c
index 93cc111..254c1ef 100644
--- a/libtinymail-camel/camel-lite/camel/camel-mime-utils.c
+++ b/libtinymail-camel/camel-lite/camel/camel-mime-utils.c
@@ -3054,7 +3054,7 @@ camel_header_address_decode(const char *in, const char *charset)
 		if (addr)
 			camel_header_address_list_append(&list, addr);
 		header_decode_lwsp(&inptr);
-		if (*inptr == ',')
+		if (*inptr == ',' || *inptr == ';')
 			inptr++;
 		else
 			break;


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