[Commits] addrselect.c 1.3.2.13 1.3.2.14

claws at claws-mail.org claws at claws-mail.org
Sat Dec 15 09:51:10 CET 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv24451/src

Modified Files:
      Tag: gtk2
	addrselect.c 
Log Message:
2012-12-15 [paul]	3.9.0cvs48

	* src/addrselect.c
		fix bug 2832, 'mail to from adress-book splitt names' 

Index: addrselect.c
===================================================================
RCS file: /home/claws-mail/claws/src/addrselect.c,v
retrieving revision 1.3.2.13
retrieving revision 1.3.2.14
diff -u -d -r1.3.2.13 -r1.3.2.14
--- addrselect.c	19 Sep 2012 15:39:05 -0000	1.3.2.13
+++ addrselect.c	15 Dec 2012 08:51:08 -0000	1.3.2.14
@@ -231,8 +231,11 @@
 		}
 	}
 	if( address ) {
-		if( name ) {
-			buf = g_strdup_printf( "%s <%s>", name, address );
+		if( name && name[0] != '\0' ) {
+			if( strchr_with_skip_quote( name, '"', ',' ) )
+				buf = g_strdup_printf( "\"%s\" <%s>", name, address );
+			else
+				buf = g_strdup_printf( "%s <%s>", name, address );
 		}
 		else {
 			buf = g_strdup( address );



More information about the Commits mailing list