From bab13ad62c547623a2a3b9f04846f36c7e775a25 Mon Sep 17 00:00:00 2001 From: Sankar P Date: Thu, 5 Apr 2007 08:12:44 +0000 Subject: Patch committed on behalf of Paul Iadonisi 2007-04-05 Sankar P * Patch committed on behalf of Paul Iadonisi * e-msg-composer-hdrs.c: (create_from_optionmenu): Show only enabled accounts on composer. Look at bug #243241 svn path=/trunk/; revision=33384 --- composer/ChangeLog | 8 ++++++++ composer/e-msg-composer-hdrs.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index c26c392b03..c835c61927 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,11 @@ +2007-04-05 Sankar P + + * Patch committed on behalf of Paul Iadonisi + + * e-msg-composer-hdrs.c: (create_from_optionmenu): + Show only enabled accounts on composer. + Look at bug #243241 + 2007-03-29 Matthew Barnes * e-msg-composer-select-file.c: diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index e4d4b046fd..2a1ae8d774 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -384,7 +384,7 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) while (e_iterator_is_valid (iter)) { account = (EAccount *) e_iterator_get (iter); - if (account->id->address && account_can_send (account)) + if (account->id->address && account_can_send (account) && account->enabled) g_ptr_array_add (addresses, account->id->address); e_iterator_next (iter); @@ -402,8 +402,8 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) g_assert_not_reached (); continue; } - - if (account->id->address && *account->id->address && account_can_send (account)) { + + if (account->id->address && *account->id->address && account_can_send (account) && account->enabled) { /* If the account has a unique email address, just * show that. Otherwise include the account name. */ -- cgit v1.2.3