Fix fetch iteration on empty folder
fix adding msg with empty flags
Merge remote-tracking branch 'refs/remotes/kali/bug/mailbox-fixes' into develop