CamelIMAPXFolder: Fix handling of "filter_junk" option.
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 10 Jun 2011 14:36:24 +0000 (10:36 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 10 Jun 2011 14:36:24 +0000 (10:36 -0400)
Looks like a typo.  Just stumbled on this by accident, but I wonder
if it has something to do with certain junk filtering bugs I've seen
reported by IMAPX users.

camel/providers/imapx/camel-imapx-folder.c

index f666498..ff3b7c1 100644 (file)
@@ -102,7 +102,7 @@ camel_imapx_folder_new (CamelStore *store, const gchar *folder_dir, const gchar
        if (!g_ascii_strcasecmp (folder_name, "INBOX")) {
                if ((istore->rec_options & IMAPX_FILTER_INBOX))
                        folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT;
-               if ((istore->rec_options & IMAPX_FILTER_INBOX))
+               if ((istore->rec_options & IMAPX_FILTER_JUNK))
                        folder->folder_flags |= CAMEL_FOLDER_FILTER_JUNK;
        } else if ((istore->rec_options & (IMAPX_FILTER_JUNK | IMAPX_FILTER_JUNK_INBOX)) == IMAPX_FILTER_JUNK)
                        folder->folder_flags |= CAMEL_FOLDER_FILTER_JUNK;