Check references field's value by user.
Add the comment for old msgdb.
Fix digest flag search for IMAP and NNTP folders.