aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2005-05-07 14:27:22 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2005-05-07 14:27:22 +0800
commit3d6a2b1c38b67cf2d5f86cb81122c6edce8594b9 (patch)
tree74a18e22d5b0bd3d8274bdc505e23a125073f601 /mail/em-account-editor.c
parent9dfbde97f536b48d86f269636b2967b114d25380 (diff)
downloadgsoc2013-evolution-3d6a2b1c38b67cf2d5f86cb81122c6edce8594b9.tar.gz
gsoc2013-evolution-3d6a2b1c38b67cf2d5f86cb81122c6edce8594b9.tar.zst
gsoc2013-evolution-3d6a2b1c38b67cf2d5f86cb81122c6edce8594b9.zip
mail-ops.c (mail_send_message) Added code to prevent copying of sent
2005-05-07 Sankar P <psankar@novell.com> * mail-ops.c (mail_send_message) Added code to prevent copying of sent items, based on provider type * em-account-editor.c (emae_defaults_page) Added code to disable the Sent Folders button svn path=/trunk/; revision=29310
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 56c7b50aad..390f092148 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2135,9 +2135,10 @@ emae_defaults_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st
emae_account_entry(emae, "bcc_addrs", E_ACCOUNT_BCC_ADDRS, xml);
gtk_widget_set_sensitive((GtkWidget *)gui->drafts_folder_button, e_account_writable(emae->account, E_ACCOUNT_DRAFTS_FOLDER_URI));
- gtk_widget_set_sensitive((GtkWidget *)gui->sent_folder_button, e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI));
+ gtk_widget_set_sensitive((GtkWidget *)gui->sent_folder_button, e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI)&& !(emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER));
gtk_widget_set_sensitive((GtkWidget *)gui->restore_folders_button,
- e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI)
+ (e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI) &&
+ ! ( emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER))
|| e_account_writable(emae->account, E_ACCOUNT_DRAFTS_FOLDER_URI));
/* Receipt policy */