diff options
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r-- | mail/mail-vfolder.c | 5 |
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; |