[balsa] Accept "email:name host" as well as "email; type=blah:name host"



commit 6edf8ef90d458cace82cd2a4a200ec7dc0cdb57c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Sep 4 18:35:52 2009 -0400

    Accept "email:name host" as well as "email;type=blah:name host"

 ChangeLog                     |    6 ++++++
 libbalsa/address-book-vcard.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 93f4e02..84e015f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-04  Peter Bloomfield
+
+	* libbalsa/address-book-vcard.c
+	(libbalsa_address_book_vcard_parse_address): accept
+	"email:name host" as well as "email;type=blah:name host".
+
 2009-09-03  Peter Bloomfield
 
 	* configure.in: oops--revert.
diff --git a/libbalsa/address-book-vcard.c b/libbalsa/address-book-vcard.c
index 16ef81a..679c766 100644
--- a/libbalsa/address-book-vcard.c
+++ b/libbalsa/address-book-vcard.c
@@ -331,8 +331,8 @@ libbalsa_address_book_vcard_parse_address(FILE * stream,
 	/*
 	 * fetch all e-mail fields
 	 */
-	if (g_ascii_strncasecmp(string, "EMAIL;", 6) == 0) {
-	    gchar *ptr = strchr(string+6, ':');
+	if (g_ascii_strncasecmp(string, "EMAIL", 5) == 0) {
+	    gchar *ptr = strchr(string + 5, ':');
 	    if (ptr) {
 		address_list =
 		    g_list_prepend(address_list, g_strdup(ptr + 1));



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