On 29/04/2024 12:02 EEST Nils via dovecot <dovecot@dovecot.org> wrote:
On 4/27/24 16:30, Nils via dovecot wrote:
I have a file backup and since that backup, new emails have been received. Also, not all of the emails were deleted - many folders weren't affected. Additionally I was able to restore a few of the deleted emails with ext4magic.
So now I have three sources:
- MAIN (new dovecot) contains the emails in the folders that weren't deleted and the emails received after the incident.
- BACKUP (of mail directory) contains all emails from last backup date (including those still in the folders that weren't deleted).
- RECOVER (directory) contains deleted email files that were recovered.
How can I join these sources into MAIN,
* without deleting any emails from MAIN (for example those that have been received today) and * with only reading and not writing into BACKUP and RECOVER?
Is there any more or less convenient way to achieve that? If not, can I just dump all the files together and make dovecot recreate the indexes?
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Will doveadm-import automatically detect if a message already exists or could I end up with duplicates? Or is it unnecessary to worry about that because of the unique filename each message has?
doveadm import will happily import same emails over & over again. It has no such check. You should use doveadm sync -1 instead. (-1 = one way)
Aki