Fixes to handling recent flags. Also if DEBUG is enabled, scan through the recent flags array to make sure there aren't any expunged messages.
Fixes to handling recent flags. Also if DEBUG is enabled, scan through the
recent flags array to make sure there aren't any expunged messages.

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot