[evolution-patches] evolution mail patch for 51551



Hi,
	Pl. see the attached patch for 51551.
	
	http://bugzilla.ximian.com/show_bug.cgi?id=51551
	
Thanks,
Suresh
Index: ChangeLog
===================================================================
RCS file: /export/src/cvs/evolution/mail/ChangeLog,v
retrieving revision 1.1.1.1.2.4.2.1
diff -u -r1.1.1.1.2.4.2.1 ChangeLog
--- ChangeLog	2003/11/11 12:41:18	1.1.1.1.2.4.2.1
+++ ChangeLog	2003/12/01 18:34:11
@@ -1,3 +1,11 @@
+2003-12-01  Suresh Chandrasekharan <suresh chandrasekharan sun com>
+	
+	* mail-callbacks.c: (composer_get_message) Encode the value of
+	"Organization:" header string here to prevent getting encoded 
+	in UNKNOWN mime charset.
+
+	Fix for bug #51551
+
 2003-11-11  Antonio Xu <antonio xu sun com>
 
 	* mail-account-gui.c (mail_account_gui_save): Allow the
Index: mail-callbacks.c
===================================================================
RCS file: /export/src/cvs/evolution/mail/mail-callbacks.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 mail-callbacks.c
--- mail-callbacks.c	2003/09/26 06:34:30	1.1.1.1
+++ mail-callbacks.c	2003/12/01 18:34:12
@@ -521,8 +521,12 @@
 		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 && *account->id->organization)
-			camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", account->id->organization);
+		/* Organization can be non-ASCII */
+		if (account->id->organization && *account->id->organization) {
+			char *o =  header_encode_string ((unsigned char *)account->id->organization);
+			camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", o);
+			g_free (o);
+		}
 	}
 	
 	/* Get the message recipients and 'touch' them, boosting their use scores */


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