aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index cc92fdf8b7..5d43fb9b2f 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1669,6 +1669,7 @@ msg_composer_account_changed_cb (EMsgComposer *composer)
ESignature *signature;
EAccount *account;
gboolean active;
+ gboolean sensitive;
const gchar *cc_addrs = NULL;
const gchar *bcc_addrs = NULL;
const gchar *uid;
@@ -1702,6 +1703,13 @@ msg_composer_account_changed_cb (EMsgComposer *composer)
signature = uid ? mail_config_get_signature_by_uid (uid) : NULL;
e_composer_header_table_set_signature (table, signature);
+ /* XXX This should be done more generically. The composer
+ * should not know about particular account types. */
+ sensitive =
+ (strstr (account->transport->url, "exchange") != NULL) ||
+ (strstr (account->transport->url, "groupwise") != NULL);
+ gtk_action_set_sensitive (ACTION (SEND_OPTIONS), sensitive);
+
exit:
update_auto_recipients (table, UPDATE_AUTO_CC, cc_addrs);
update_auto_recipients (table, UPDATE_AUTO_BCC, bcc_addrs);