I’m trying to copy/move mail from an inactive imap account to a new account.
The imap server is no longer available.
I’ve moved mail to this imap account to ‘backup’ them, but the server is long gone.
That worked fine. i guess the mails are only local on my pc now, not synced to any imap server.
Now i try to move them to a new account/server. (or to a local/ANY folder)
but there is just a popup, “this action can take a long time” (or similar, my language settings are dutch)
the popupp goes away , but nothing is moved or copied…
There is no error message.
At first i tried to move several mails, then just 1…also tried different mails. even a mail with pure text did not move.
Oh that is strange. It could be then as it’s an old IMAP account no longer active or synching with the server online, you might then need to try dragging those messages to “Local folders” at the bottom left.
IMAP email (by default in Mail clients) merely just mirrors your online account unless you set it to “download messages offline” in the Account / IMAP / Tab.
So if you didn’t have that option enabled, then it could be you are now eg: only looking at a local cache of your old imap account messages and they won’t copy or move at all to any other imap account or local folders unless you reinstated that account online again.
So if you also cannot copy or drag any of those old IMAP account messages to Local folders, then the only option would be to reinstall your old IMAP account for a short time if that mailbox provider is still around till you have got all your messages out of it, and then close it again. Maybe do it for a month.
Apart from that, hopefully someone else on this free forum has some other ideas.
Same problem for me. I wanted to move mails from one IMAP accout to another. Unfortunately this does not work correctly. So mails are not on the new account but also lost on the old account. I have an emClient-Backup where the mails and (some) content is available. But emClienbt does not export even the data it has, as it is not “synced” to the server.
I wonder if we could manipulate the sqlite database in the export to mark the mails as synced. Doing that, the emClient should think the mails ar “complete” and export available data.
@cyberzork Do you think, this could work? Perhaps you can give us a hint, which database-field we need to manipulate!
However I would prefer, that emClient also has an option to export “incomplete” synced data. I cannot understand, why it should not do, as data is available in the backup obvisiouly.
i cannot reinstall the old server/account. its gone.
I can open the mails, attachments, everything. they just wont move…
As you cannot reinstate your account with your provider as you advised and the emails won’t move out of the old inactive IMAP account, but you can open the emails and attachments ok, then try exporting the messages manually to .eml files via the Menu / Export option.
Now if you also cannot export to .eml files, that means your IMAP messages were not all fully cached locally. As @Gary advised in that other link above, you would normally need to have the “sync options” set to download messages and attachments offline for this to work before disconnecting an IMAP or Exchange account.
The only other thing I could suggest is eg: open each message and copy and paste the message contents into a new email “using an active email account”. Obviously this will take time as you will have to save each message attachment from each opened message & reattach them to the new message, but might be the only way.
I wonder if we could manipulate the sqlite database in the export to mark the mails as synced. Doing that, the emClient should think the mails are “complete” and export available data
I don’t think you can manipulate the database manually to mark messages as synced on export, or do anything to the database outside of eM Client either. However I guess anything is possible if you have the know-how. Unfortunately that is beyond my scope and ability.
All available data is in table “LocalMailContents”. As far as I can see, emClient does not export an empty eml file if contentLength does not match to partBody. So a quick fix is to correct the mismatch. One way to update the database:
Update LocalMailContents set contentLength = 0, partBody = "" where partBody is NULL;
Update LocalMailContents set contentLength = 0, partBody = "" where contentLength = -1;
Update LocalMailContents set partHeader = "" where partHeader is NULL;
I need more investigation to get the best and correct update statements. But so far we can get some data out.
update mail_data file in the zip archiv
import backup to emClient (internet connection offline)
Export Mails to eml
Et voila, you get the data in database written to the eml file.
One pitfall. Of course it might not be fully correct content because some headers might missing.
Perhaps we can tune this automatically or correct this manually. At least we see, what is available and what is not.