> 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:
> >
> > 1. MAIN (new dovecot) contains the emails in the folders that weren't
> >    deleted and the emails received after the incident.
> > 2. BACKUP (of mail directory) contains all emails from last backup date
> >    (including those still in the folders that weren't deleted).
> > 3. 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-le...@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
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to