aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
author7 <NotZed@Ximian.com>2001-10-18 00:14:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-18 00:14:05 +0800
commitf889afd350da4e9262b49b640f95af1a8589c9ba (patch)
treece50256236794d2e45ae0bbb40f1da714e1972f3 /mail/mail-callbacks.c
parentee6a2b01f9e52483d9aa82eff213d36450d2bb9a (diff)
downloadgsoc2013-evolution-f889afd350da4e9262b49b640f95af1a8589c9ba.tar.gz
gsoc2013-evolution-f889afd350da4e9262b49b640f95af1a8589c9ba.tar.zst
gsoc2013-evolution-f889afd350da4e9262b49b640f95af1a8589c9ba.zip
Only empty trash on enabled accounts, fixes #12821.
2001-10-17 <NotZed@Ximian.com> * mail-callbacks.c (empty_trash): Only empty trash on enabled accounts, fixes #12821. svn path=/trunk/; revision=13724
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index b5cbe6c19e..48a3275692 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -2340,7 +2340,7 @@ empty_trash (BonoboUIComponent *uih, void *user_data, const char *path)
account = accounts->data;
/* make sure this is a valid source */
- if (account->source && account->source->url) {
+ if (account->source && account->source->enabled && account->source->url) {
provider = camel_session_get_provider (session, account->source->url, &ex);
if (provider) {
/* make sure this store is a remote store */