diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-08-30 05:21:22 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-08-30 05:21:22 +0800 |
commit | 8c22a4d62ecd7f626aad583192e361e3658c72ee (patch) | |
tree | ccdf62abef16fd0b6dc44101363d676673b55c00 /composer/e-msg-composer.c | |
parent | 7ca1797bbc3d3cddd56a4da17e211273b5815ece (diff) | |
download | gsoc2013-evolution-8c22a4d62ecd7f626aad583192e361e3658c72ee.tar.gz gsoc2013-evolution-8c22a4d62ecd7f626aad583192e361e3658c72ee.tar.zst gsoc2013-evolution-8c22a4d62ecd7f626aad583192e361e3658c72ee.zip |
Pass in FALSE as the 'sending' arg to e_msg_composer_get_message.
2001-08-29 Jon Trowbridge <trow@ximian.com>
* e-msg-composer.c (e_msg_composer_get_message_draft): Pass
in FALSE as the 'sending' arg to e_msg_composer_get_message.
(build_message): Added a 'sending' arg, which is passed to
e_msg_composer_get_message.
(e_msg_composer_get_message): Added a 'sending' arg,
which gets passed directly on to build_message.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Added
a "sending" arg, which should be TRUE if the message is being
sent now (rather than being autosaved, etc.). The address
use scores are only updated when sending. (Bug #8332)
Removed obsolete (#if 0/#endif-ed) code.
2001-08-29 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (composer_get_message): When calling
e_msg_composer_get_message, pass in TRUE for the 'sending' arg.
(Part of the fix for bug #8332)
svn path=/trunk/; revision=12518
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index a0a5c1d6d8..5dcaf73400 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -289,7 +289,7 @@ add_inlined_images (EMsgComposer *composer, CamelMultipart *multipart) * composed in `composer'. */ static CamelMimeMessage * -build_message (EMsgComposer *composer) +build_message (EMsgComposer *composer, gboolean sending) { EMsgComposerAttachmentBar *attachment_bar = E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar); @@ -310,7 +310,7 @@ build_message (EMsgComposer *composer) return NULL; new = camel_mime_message_new (); - e_msg_composer_hdrs_to_message (hdrs, new); + e_msg_composer_hdrs_to_message (hdrs, new, sending); for (i = 0; i < composer->extra_hdr_names->len; i++) { camel_medium_add_header (CAMEL_MEDIUM (new), composer->extra_hdr_names->pdata[i], @@ -3007,12 +3007,12 @@ e_msg_composer_attach (EMsgComposer *composer, CamelMimePart *attachment) * Return value: A pointer to the new CamelMimeMessage object **/ CamelMimeMessage * -e_msg_composer_get_message (EMsgComposer *composer) +e_msg_composer_get_message (EMsgComposer *composer, gboolean sending) { g_return_val_if_fail (composer != NULL, NULL); g_return_val_if_fail (E_IS_MSG_COMPOSER (composer), NULL); - return build_message (composer); + return build_message (composer, sending); } CamelMimeMessage * @@ -3038,7 +3038,7 @@ e_msg_composer_get_message_draft (EMsgComposer *composer) old_smime_encrypt = composer->smime_encrypt; composer->smime_encrypt = FALSE; - msg = e_msg_composer_get_message (composer); + msg = e_msg_composer_get_message (composer, FALSE); composer->send_html = old_send_html; composer->pgp_sign = old_pgp_sign; |