[evolution-patches] fix for bug #69241



Needed to decode the content stream to gpg, not pass it the encoded
stream.

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com  - www.novell.com
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.2296
diff -u -r1.2296 ChangeLog
--- ChangeLog	4 Nov 2004 20:52:49 -0000	1.2296
+++ ChangeLog	8 Nov 2004 18:34:13 -0000
@@ -1,3 +1,10 @@
+2004-11-08  Jeffrey Stedfast  <fejj novell com>
+
+	* camel-gpg-context.c (gpg_decrypt): Use
+	camel_data_wrapper_decode_to_stream() here so that if there is a
+	Content-Transfer-Encoding set for the part, it gets decoded before
+	beign sent to gpg. Fixes bug #69241.
+
 2004-11-04  Jeffrey Stedfast  <fejj novell com>
 
 	* providers/imap4/camel-imap4-engine.c: Added much in-line
Index: camel-gpg-context.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/camel-gpg-context.c,v
retrieving revision 1.63
diff -u -r1.63 camel-gpg-context.c
--- camel-gpg-context.c	20 Sep 2004 05:59:53 -0000	1.63
+++ camel-gpg-context.c	8 Nov 2004 18:34:14 -0000
@@ -1667,7 +1667,7 @@
 	CamelStream *ostream, *istream;
 
 	istream = camel_stream_mem_new();
-	camel_data_wrapper_write_to_stream(camel_medium_get_content_object((CamelMedium *)ipart), istream);
+	camel_data_wrapper_decode_to_stream(camel_medium_get_content_object((CamelMedium *)ipart), istream);
 	camel_stream_reset(istream);
 
 	/* TODO: de-canonicalise end of lines? */

Attachment: smime.p7s
Description: S/MIME cryptographic signature



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