What is happening
The Maildir format places new messages in new and seen messages in cur, with tmp used during delivery. Implementations such as Dovecot maintain additional index and UID data; rebuilding views must not overwrite the only message set.