I have looked at the following and didn't see a solution to my issue:
I have server A that was setup with Postfix/Dovecot and using ~/Maildir format in a system users account (i.e. not virtual users). I also have server B that has been configured in the same manner, and may or may not have mails existing in ~/Maildir.
If ~/Maildir doesn't exist for a user on server B, then it seems safe to assume I can just rsync the server A ~/Maildir to server B ~/Maildir and it will preserve folders, mails read, other meta data, etc.
If ~/Maildir exists on both servers each with existing mail, how can I safely merge the data from server A into the ~/Maildir on server B? In principle the data files themselves should be unique, and it should just come down to the Dovecot meta data files that would exist on both servers.
I was looking here, but that is a generic move, and I think since the server configuration is similar if not identical, then my scenario should be much easier:
This last one makes it seem trivial and oversimplified given the content of other questions. It isn't clear to me if this is intended for virtual users or system users.
I figured I didn't have much to lose, and discovered that for a single user, I could just run:
doveadm import maildir:~/old_mail/Maildir "" all
but that imported the mails as Unread, rather than whatever state they were in for the old Maildir. How would I fix that?
I think this does more what I want, since with
import you can only run it once as it will indiscriminately bring email in more than once:
doveadm sync maildir:~/old_mail/Maildir
but it still has the same problems with all mail being unread.