Filter ImapThread by namespace in generic Imap actions code too.