aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-09-21 11:53:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-21 11:53:42 +0800
commita0100ddf24327f24d63d951ce0c51995dd5adc5c (patch)
treea8a23b5cee986b943c632fc50b9b8c071acfb508 /mail/mail-vfolder.c
parent096dad5a2a78751c8938d3397102c132d7a045a6 (diff)
downloadgsoc2013-evolution-a0100ddf24327f24d63d951ce0c51995dd5adc5c.tar.gz
gsoc2013-evolution-a0100ddf24327f24d63d951ce0c51995dd5adc5c.tar.zst
gsoc2013-evolution-a0100ddf24327f24d63d951ce0c51995dd5adc5c.zip
Dont let drafts/outbox/sent be added via a generic 'all local folders'
2001-09-20 <NotZed@Ximian.com> * mail-vfolder.c (check_source): Dont let drafts/outbox/sent be added via a generic 'all local folders' rule. svn path=/trunk/; revision=13042
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 5967280ef1..48943eea26 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -75,6 +75,11 @@ extern CamelSession *session;
static int
check_source(FilterRule *rule, CamelFolder *folder)
{
+ extern CamelFolder *drafts_folder, *outbox_folder, *sent_folder;
+
+ if (folder == drafts_folder || folder == outbox_folder || folder == sent_folder)
+ return FALSE;
+
if (rule->source) {
int remote = (((CamelService *)folder->parent_store)->provider->flags & CAMEL_PROVIDER_IS_REMOTE) != 0;