Replies: 1 comment
-
|
I've used imapsync to do this recently. Take a look at this FAQ page, under "How can I remove duplicates in a lone account?". The FAQs are also available on the github page. Obviously, backup everything before you give this a try, use some dummy accounts to make sure everything works as you expect, and make use of the A basic bash script might look a little like this: Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I migrated my old mailserver setup to stalwart.
One domain, several users and tens of thousands of emails.
As I set everything up I imported mails for users using the stalwart-cli import messages command from a maildir export from the old mailserver.
That looked good, so I proceeded with my migration.
Eventually I turned off the old mail server, took another maildir backup and ran the import again. That took a bit, but ultimately succeeded.
Unfortunately too late I realized it re-imported already existing emails and thus most mailboxes now contain nearly all mails twice.
I misinterpreted this line to assume it would dedupe upon import:
So my questions:
Message-IDheader is untouched, so that might be a solved thing.Any kind of solution to get me there appreciated. I don't mind writing a script to identify & delete from the database if that's needed
(This question is similar to #92, but that doesn't have a solution)
Edit: Related: #590 -- deduping on import
Beta Was this translation helpful? Give feedback.
All reactions