We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Emails get duplicated after I change email server name

  • 5 tontu
  • 1 am na jafe-jafe bii
  • 1 view
  • i mujjee tontu mooy Stans

more options

I recently changed email provider, and was able to use a tool to migrate my emails from the old mailbox to the new mailbox. I was then able to log in via a webmail interface to confirm that all my emails migrated successfully.

The problem is that after changing the server details in Thunderbird to point at the new mailbox, it is downloading every single email again, so I have duplicates of everything.

I've used an extension to remove the duplicates - https://addons.thunderbird.net/en-US/thunderbird/addon/removedupes/ - but I'd be happier if this didn't happen at all, especially as I have more mailboxes to migrate.

Does anyone know why this happens, or how to avoid it?

I recently changed email provider, and was able to use a tool to migrate my emails from the old mailbox to the new mailbox. I was then able to log in via a webmail interface to confirm that all my emails migrated successfully. The problem is that after changing the server details in Thunderbird to point at the new mailbox, it is downloading every single email again, so I have duplicates of everything. I've used an extension to remove the duplicates - https://addons.thunderbird.net/en-US/thunderbird/addon/removedupes/ - but I'd be happier if this didn't happen at all, especially as I have more mailboxes to migrate. Does anyone know why this happens, or how to avoid it?

All Replies (5)

more options

That's because the popstate file contains data for a specific pop server. Since you changed the server name, a new popstate file was generated and it doesn't include ANY of the data from the old server name's popstate file. You can't avoid this, because as far as Tbird is concerned, it has NEVER downloaded any messages from the new server.

more options

Thanks for the reply Stans, much appreciated.

However, this was an IMAP account (not POP) and I don't have any new popstate files in my profile.

It's worth me noting that my iPhone was able to accept the new account details without duplicating any mail.

more options

In that case, Tbird still had its locally stored copies downloaded from the old IMAP server and is reusing the same mbox files with the new server. You can avoid this next time by deleting mbox files so that Thunderbird can recreate them with messages from the new server. iPhone (and other mobile devices) do not synchronise all messages for offline access like desktop IMAP clients do, so this doesn't count as a proper comparison.

more options

Thanks for the suggestion. But why would it be a problem using the same mbox files with the new server? Every time it connects, it must have some way of comparing a local email with a remote email and detecting whether it needs to make a new local copy. Why would me changing the address it connects to, affect the way it detects mail it already has locally?

more options

ben80 said

Every time it connects, it must have some way of comparing a local email with a remote email and detecting whether it needs to make a new local copy.

It doesn't. Thunderbird doesn't have an inbuilt mechanism for avoiding or cleaning up duplicates, as far as I know.