diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-02 02:21:13 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-02 02:21:13 +0800 |
commit | 4823916613b56d2cf046469b466ef5c6754b8d27 (patch) | |
tree | f0e5fc4e1e81e84d7bcad96a96b5456db089f87e /composer/e-msg-composer.c | |
parent | 82f410cc891f9db55b6a756233a27b7921baf9b0 (diff) | |
download | gsoc2013-evolution-4823916613b56d2cf046469b466ef5c6754b8d27.tar.gz gsoc2013-evolution-4823916613b56d2cf046469b466ef5c6754b8d27.tar.zst gsoc2013-evolution-4823916613b56d2cf046469b466ef5c6754b8d27.zip |
** Fix for bug #315012 from Pascal Terjan
svn path=/trunk/; revision=33611
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 35120bdf05..57c6e4f40c 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -288,7 +288,7 @@ static void add_attachments_from_multipart (EMsgComposer *composer, CamelMultipa /* used by e_msg_composer_new_with_message() */ static void handle_multipart (EMsgComposer *composer, CamelMultipart *multipart, int depth); static void handle_multipart_alternative (EMsgComposer *composer, CamelMultipart *multipart, int depth); -static void handle_multipart_encrypted (EMsgComposer *composer, CamelMultipart *multipart, int depth); +static void handle_multipart_encrypted (EMsgComposer *composer, CamelMimePart *multipart, int depth); static void handle_multipart_signed (EMsgComposer *composer, CamelMultipart *multipart, int depth); static void set_editor_signature (EMsgComposer *composer); @@ -4225,7 +4225,7 @@ handle_multipart_signed (EMsgComposer *composer, CamelMultipart *multipart, int handle_multipart_signed (composer, multipart, depth); } else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) { /* decrypt the encrypted content and configure the composer to encrypt outgoing messages */ - handle_multipart_encrypted (composer, multipart, depth); + handle_multipart_encrypted (composer, mime_part, depth); } else if (camel_content_type_is (content_type, "multipart", "alternative")) { /* this contains the text/plain and text/html versions of the message body */ handle_multipart_alternative (composer, multipart, depth); @@ -4245,7 +4245,7 @@ handle_multipart_signed (EMsgComposer *composer, CamelMultipart *multipart, int } static void -handle_multipart_encrypted (EMsgComposer *composer, CamelMultipart *multipart, int depth) +handle_multipart_encrypted (EMsgComposer *composer, CamelMimePart *multipart, int depth) { CamelContentType *content_type; CamelCipherContext *cipher; @@ -4260,7 +4260,7 @@ handle_multipart_encrypted (EMsgComposer *composer, CamelMultipart *multipart, i camel_exception_init (&ex); cipher = mail_crypto_get_pgp_cipher_context (NULL); mime_part = camel_mime_part_new(); - valid = camel_cipher_decrypt(cipher, (CamelMimePart *)multipart, mime_part, &ex); + valid = camel_cipher_decrypt(cipher, multipart, mime_part, &ex); camel_object_unref(cipher); camel_exception_clear (&ex); if (valid == NULL) @@ -4333,7 +4333,7 @@ handle_multipart_alternative (EMsgComposer *composer, CamelMultipart *multipart, handle_multipart_signed (composer, mp, depth + 1); } else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) { /* decrypt the encrypted content and configure the composer to encrypt outgoing messages */ - handle_multipart_encrypted (composer, mp, depth + 1); + handle_multipart_encrypted (composer, mime_part, depth + 1); } else { /* depth doesn't matter so long as we don't pass 0 */ handle_multipart (composer, mp, depth + 1); @@ -4387,7 +4387,7 @@ handle_multipart (EMsgComposer *composer, CamelMultipart *multipart, int depth) handle_multipart_signed (composer, mp, depth + 1); } else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) { /* decrypt the encrypted content and configure the composer to encrypt outgoing messages */ - handle_multipart_encrypted (composer, mp, depth + 1); + handle_multipart_encrypted (composer, mime_part, depth + 1); } else if (camel_content_type_is (content_type, "multipart", "alternative")) { handle_multipart_alternative (composer, mp, depth + 1); } else { @@ -4685,7 +4685,7 @@ e_msg_composer_new_with_message (CamelMimeMessage *message) handle_multipart_signed (new, multipart, 0); } else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) { /* decrypt the encrypted content and configure the composer to encrypt outgoing messages */ - handle_multipart_encrypted (new, multipart, 0); + handle_multipart_encrypted (new, message, 0); } else if (camel_content_type_is (content_type, "multipart", "alternative")) { /* this contains the text/plain and text/html versions of the message body */ handle_multipart_alternative (new, multipart, 0); |