diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-09 05:11:29 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-09 05:11:29 +0800 |
commit | e239e423ddddf3a5e0613f03aef8e8381e6f753c (patch) | |
tree | c83e5478b58e62542f2f5ad00bce08431d7b6810 /composer/e-msg-composer.c | |
parent | 10a99ada7f32b3b7e2f54ce46846e7529804ba53 (diff) | |
download | gsoc2013-evolution-e239e423ddddf3a5e0613f03aef8e8381e6f753c.tar.gz gsoc2013-evolution-e239e423ddddf3a5e0613f03aef8e8381e6f753c.tar.zst gsoc2013-evolution-e239e423ddddf3a5e0613f03aef8e8381e6f753c.zip |
Set the PGP/MIME and S/MIME options to FALSE before getting the message
2001-08-08 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_get_message_draft): Set the
PGP/MIME and S/MIME options to FALSE before getting the message
draft and restore the values afterward.
svn path=/trunk/; revision=11802
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 55f4595c61..aac2d45cc9 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2979,14 +2979,32 @@ e_msg_composer_get_message_draft (EMsgComposer *composer) { CamelMimeMessage *msg; const MailConfigAccount *account; - gint old_send_html; - + gboolean old_send_html; + gboolean old_pgp_sign; + gboolean old_pgp_encrypt; + gboolean old_smime_sign; + gboolean old_smime_encrypt; + /* always save drafts as HTML to preserve formatting */ old_send_html = composer->send_html; composer->send_html = TRUE; + old_pgp_sign = composer->pgp_sign; + composer->pgp_sign = FALSE; + old_pgp_encrypt = composer->pgp_encrypt; + composer->pgp_encrypt = FALSE; + old_smime_sign = composer->smime_sign; + composer->smime_sign = FALSE; + old_smime_encrypt = composer->smime_encrypt; + composer->smime_encrypt = FALSE; + msg = e_msg_composer_get_message (composer); + composer->send_html = old_send_html; - + composer->pgp_sign = old_pgp_sign; + composer->pgp_encrypt = old_pgp_encrypt; + composer->smime_sign = old_smime_sign; + composer->smime_encrypt = old_smime_encrypt; + /* Attach whether this message was written in HTML */ camel_medium_set_header (CAMEL_MEDIUM (msg), "X-Evolution-Format", composer->send_html ? "text/html" : "text/plain"); |