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.
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;