diff options
author | leon.zhang <leon.zhang@sun.com> | 2003-01-24 12:59:36 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-01-24 12:59:36 +0800 |
commit | 09e6aacd2d5af2573cd9640e20df02067231b697 (patch) | |
tree | dc46b022ed5c6a5bfb6f73ae28e7419d512fd33e /mail/mail-callbacks.c | |
parent | e296988648aea5a9bbecba60a0266ade7a483d92 (diff) | |
download | gsoc2013-evolution-09e6aacd2d5af2573cd9640e20df02067231b697.tar.gz gsoc2013-evolution-09e6aacd2d5af2573cd9640e20df02067231b697.tar.zst gsoc2013-evolution-09e6aacd2d5af2573cd9640e20df02067231b697.zip |
transfer the current acount info, which will be regarded as the sender of
2002-12-07 leon.zhang <leon.zhang@sun.com>
* component-factory.c (user_create_new_item_cb): transfer the
current acount info, which will be regarded as the sender of
new composer, to send_to_url().
* mail-callbacks.h (send_to_url): Add a new parameter for parent
folder uri.
* mail-callbacks.c (send_to_url): Create composer base on source
account info from parent folder physical uri.
(post_to_url): create composer based on current account from
parent folder physical uri.
* mail-display.c (on_link_clicked): Apply new format of function:
send_to_url.
Fixes bug #35123 #35289
2003-01-24 Not Zed <NotZed@Ximian.com>
* mail-local.c (non_equal): We do actually need to check they are
file url's, otherwise, all url's match.
svn path=/trunk/; revision=19611
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 8a30ece8cf..7957121f10 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -806,18 +806,22 @@ compose_msg (GtkWidget *widget, gpointer user_data) /* Send according to a mailto (RFC 2368) URL. */ void -send_to_url (const char *url) +send_to_url (const char *url, const char *parent_uri) { struct _composer_callback_data *ccd; GtkWidget *composer; + EAccount *account = NULL; /* FIXME: no way to get folder browser? Not without * big pain in the ass, as far as I can tell */ if (!check_send_configuration (NULL)) return; - /* Tell create_msg_composer to use the default email profile */ - composer = create_msg_composer (NULL, FALSE, url); + if (parent_uri) + account = mail_config_get_account_by_source_url (parent_uri); + + composer = create_msg_composer (account, FALSE, url); + if (!composer) return; @@ -1503,8 +1507,17 @@ post_to_url (const char *url) { struct _composer_callback_data *ccd; GtkWidget *composer; + EAccount *account = NULL; + + /* FIXME: no way to get folder browser? Not without + * big pain in the ass, as far as I can tell */ + if (!check_send_configuration (NULL)) + return; + + if (url) + account = mail_config_get_account_by_source_url (url); - composer = create_msg_composer (NULL, TRUE, NULL); + composer = create_msg_composer (account, TRUE, NULL); if (!composer) return; |