[evolution-patches] fix for bug #41730



don't display the organization heade ri f it is empty.

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? 41730.patch
? accounts.xml
? crash.txt
? evolution-mail-account.schemas
? mail-account-list.h
? mail-account.c
? mail-account.h
? mail-composer-prefs.patch
? ml-load-save-state.c
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2702
diff -u -r1.2702 ChangeLog
--- ChangeLog	21 Apr 2003 17:42:40 -0000	1.2702
+++ ChangeLog	22 Apr 2003 19:24:36 -0000
@@ -1,3 +1,8 @@
+2003-04-22  Jeffrey Stedfast  <fejj ximian com>
+
+	* mail-callbacks.c (composer_get_message): Only add the
+	Organization: header if it is non-empty. Fixes bug #41730.
+
 2003-04-18  Jeffrey Stedfast  <fejj ximian com>
 
 	* mail-composer-prefs.c (spell_set_ui): Protect against a NULL
Index: mail-callbacks.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-callbacks.c,v
retrieving revision 1.438
diff -u -r1.438 mail-callbacks.c
--- mail-callbacks.c	9 Apr 2003 14:20:33 -0000	1.438
+++ mail-callbacks.c	22 Apr 2003 19:24:40 -0000
@@ -519,7 +519,7 @@
 		camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Account", account->name);
 		camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Transport", account->transport->url);
 		camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", account->sent_folder_uri);
-		if (account->id->organization)
+		if (account->id->organization && *account->id->organization)
 			camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", account->id->organization);
 	}
 	


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