aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-11 12:12:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-11 12:12:12 +0800
commitaae60baf0154867ea986e2b7000f21fa8c8444c9 (patch)
treea0aa9e5adfb5b6b9cc5cd3cffd66a9073a330052 /composer/e-msg-composer.c
parentac9abd5e6096d8511a1fe3892cf9453eb7c7ba2f (diff)
downloadgsoc2013-evolution-aae60baf0154867ea986e2b7000f21fa8c8444c9.tar.gz
gsoc2013-evolution-aae60baf0154867ea986e2b7000f21fa8c8444c9.tar.zst
gsoc2013-evolution-aae60baf0154867ea986e2b7000f21fa8c8444c9.zip
Updated. We might want to change the corba interface for this to allow
2001-02-10 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (impl_Composer_set_headers): Updated. We might want to change the corba interface for this to allow setting the from-address as well. * e-msg-composer.c (e_msg_composer_new_with_message): Updated. (e_msg_composer_set_headers): Now takes a 'From' argument so that we can try to pre-determine the account the user will want to send from. svn path=/trunk/; revision=8165
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index ef4b8414f2..92249af5bb 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1825,7 +1825,7 @@ e_msg_composer_new_with_message (CamelMimeMessage *msg)
}
}
- e_msg_composer_set_headers (new, To, Cc, Bcc, subject);
+ e_msg_composer_set_headers (new, NULL, To, Cc, Bcc, subject);
free_recipients (To);
free_recipients (Cc);
@@ -2046,6 +2046,7 @@ e_msg_composer_show_attachments (EMsgComposer *composer,
/**
* e_msg_composer_set_headers:
* @composer: a composer object
+ * @from: the name of the account the user will send from
* @to: the values for the "To" header
* @cc: the values for the "Cc" header
* @bcc: the values for the "Bcc" header
@@ -2054,8 +2055,11 @@ e_msg_composer_show_attachments (EMsgComposer *composer,
* Sets the headers in the composer to the given values.
**/
void
-e_msg_composer_set_headers (EMsgComposer *composer, const GList *to,
- const GList *cc, const GList *bcc,
+e_msg_composer_set_headers (EMsgComposer *composer,
+ const char *from,
+ const GList *to,
+ const GList *cc,
+ const GList *bcc,
const char *subject)
{
EMsgComposerHdrs *hdrs;
@@ -2063,6 +2067,7 @@ e_msg_composer_set_headers (EMsgComposer *composer, const GList *to,
g_return_if_fail (E_IS_MSG_COMPOSER (composer));
hdrs = E_MSG_COMPOSER_HDRS (composer->hdrs);
+ e_msg_composer_hdrs_set_from_account (hdrs, from);
e_msg_composer_hdrs_set_to (hdrs, to);
e_msg_composer_hdrs_set_cc (hdrs, cc);
e_msg_composer_hdrs_set_bcc (hdrs, bcc);