X
Tap here to go to the mobile version of the site.

Support Forum

Importing email from pop account after deleating it

Posted

I had a pop account. Then I added an imap account and deleted the pop account for that same email address. I just forgot to move the emails from my archives folder before deleting that account. But I can see on my disk that the files with the emails are still present and I can open them with my text editor. I just can't find a way to import them into the new imap account. I tried the ImportExportTools, and when try to import one of those files, the subfolder is created under my imap mailaccount in Thunderbird, but the emails themselves are missing. The files are all mbox files.

I'm uysing the latest Thunderbird version on Linux Mint 19.

I had a pop account. Then I added an imap account and deleted the pop account for that same email address. I just forgot to move the emails from my archives folder before deleting that account. But I can see on my disk that the files with the emails are still present and I can open them with my text editor. I just can't find a way to import them into the new imap account. I tried the ImportExportTools, and when try to import one of those files, the subfolder is created under my imap mailaccount in Thunderbird, but the emails themselves are missing. The files are all mbox files. I'm uysing the latest Thunderbird version on Linux Mint 19.

Chosen solution

I know you have sorted this but I've an idea to test out just in case it is the reason why those mbox files did not display emails. Someone else posted a similar issue and noticed a difference in the structure of the mbox file. Perhaps this explains what occured. They were comparing an old mbox file from a while ago.

eg: 'New' - each email in mbox file started with the following...

  • From - Fri Jun 19 16:49:56 2015
  • X-Account-Key: account1
  • X-UIDL: AKdUfbwAAFXTVYQQNgVLeCXC0EY
  • X-Mozilla-Status: 0001
  • X-Mozilla-Status2: 00000000

The 'old' one started each email with this structure

  • From - Fri Jun 19 16:49:56 2015
  • X-Mozilla-Status: 0001
  • X-Mozilla-Status2: 00000000
Read this answer in context 0
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

Question owner

See attached the file list

See attached the file list
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1506 solutions 7134 answers

You can't import mbox files to IMAP or news folders:

https://freeshell.de//~kaosmos/mboximport-en.html

Import to Local Folders, and if you must then upload messages to an IMAP server, do it in small batches, as it could involve significant bandwidth.

Alternatively, you could simply copy the mbox files into the Mail/Local Folders location of the profile folder (while TB is closed).

https://support.mozilla.org/en-US/questions/1254476

You can't import mbox files to IMAP or news folders: https://freeshell.de//~kaosmos/mboximport-en.html Import to Local Folders, and if you must then upload messages to an IMAP server, do it in small batches, as it could involve significant bandwidth. Alternatively, you could simply copy the mbox files into the Mail/Local Folders location of the profile folder (while TB is closed). https://support.mozilla.org/en-US/questions/1254476
Was this helpful to you?
Quote

Question owner

I replied in the thread you posted ;). https://support.mozilla.org/en-US/questions/1254476

I replied in the thread you posted ;). https://support.mozilla.org/en-US/questions/1254476
Was this helpful to you?
Quote
Matt
  • Top 10 Contributor
  • Moderator
3236 solutions 22241 answers

jacktummers said

I replied in the thread you posted ;). https://support.mozilla.org/en-US/questions/1254476

I have locked that thread to prevent further spam to the participant there. This is your support thread, please use it.

''jacktummers [[#answer-1209485|said]]'' <blockquote> I replied in the thread you posted ;). https://support.mozilla.org/en-US/questions/1254476 </blockquote> I have locked that thread to prevent further spam to the participant there. This is your support thread, please use it.
Was this helpful to you?
Quote

Question owner

I tried the above but that didn't help. I copied the 2018 file to the Local Folder, and when I open Thunderbird the folder is present, but with no emails in it. I can open the 2018 file with a text editor and all the mails are inside that file. When I first click the 2018 folder I can see in a short flash something that looks like the account settings page, and after that nothing.

I tried the above but that didn't help. I copied the 2018 file to the Local Folder, and when I open Thunderbird the folder is present, but with no emails in it. I can open the 2018 file with a text editor and all the mails are inside that file. When I first click the 2018 folder I can see in a short flash something that looks like the account settings page, and after that nothing.
Was this helpful to you?
Quote
Toad-Hall
  • Top 10 Contributor
1741 solutions 11664 answers

re :I copied the '2018' file to the Local Folder Please post image showing contents of 'Mail'>' Local Folder' in profile.

Right click on '2018' file and select 'Properties' Attributes: Make sure 'Read-only' and 'hidden' are not selected.

re :I copied the '2018' file to the Local Folder Please post image showing contents of 'Mail'>' Local Folder' in profile. Right click on '2018' file and select 'Properties' Attributes: Make sure 'Read-only' and 'hidden' are not selected.
Was this helpful to you? 0
Quote

Question owner

I'm afraid that didn't help either. By the way, I see no option 'hidden', I can only set it to read only or 'read&write'. I chose 'read&write' ofcourse but still don't see any mails.

I'm afraid that didn't help either. By the way, I see no option 'hidden', I can only set it to read only or 'read&write'. I chose 'read&write' ofcourse but still don't see any mails.
Was this helpful to you?
Quote
Matt
  • Top 10 Contributor
  • Moderator
3236 solutions 22241 answers

This is an image of the properties of a random file of my hard drive. This is a standard windows file properties window. There is nothing fancy about it. But you are using Linux and Linux does not have that hidden option.

I think however if the import export tools do not find any mails in the file when you select to import from an MBOX, then your have a corrupt file and need to go down the path of trying to find out why it is corrupt. As even corrupt files rarely have NO messages that can be imported I really am starting to wonder about what is happening here.

<img src=https://prod-cdn.sumo.mozilla.net/uploads/images/2019-03-31-05-05-03-42d014.png> This is an image of the properties of a random file of my hard drive. This is a standard windows file properties window. There is nothing fancy about it. But you are using Linux and Linux does not have that hidden option. I think however if the import export tools do not find any mails in the file when you select to import from an MBOX, then your have a corrupt file and need to go down the path of trying to find out why it is corrupt. As even corrupt files rarely have NO messages that can be imported I really am starting to wonder about what is happening here.
Was this helpful to you?
Quote

Question owner

Hi Matt, and thanks for trying to help :). Attached is what I see under Properties (but this is in Dutch, but 'Lezen en schrijven' means 'Read and write'). The settings seem to be okay.

This is not only happening to this file, but also to the one from 2017, 2016 etc, that cannot be imported. I have no idea what to do next, but I will try to read the file and see if I can see something odd.

Hi Matt, and thanks for trying to help :). Attached is what I see under Properties (but this is in Dutch, but 'Lezen en schrijven' means 'Read and write'). The settings seem to be okay. This is not only happening to this file, but also to the one from 2017, 2016 etc, that cannot be imported. I have no idea what to do next, but I will try to read the file and see if I can see something odd.
Was this helpful to you?
Quote
Toad-Hall
  • Top 10 Contributor
1741 solutions 11664 answers

In Local Folders

  • Right click on 2018 folder and select 'Properties'
  • click on 'Repair folder'
  • click on OK

Did this work ?

In Local Folders * Right click on 2018 folder and select 'Properties' * click on 'Repair folder' * click on OK Did this work ?
Was this helpful to you?
Quote

Question owner

Thanks for the suggestion.

I don't have an option for Repair folder on my Linux Mint installation. I could do a complete check file system, but I don't think that is the problem, since Thunderbird is on my primary disk with the Linux OS and home directory and everything else is working fine.

Thanks for the suggestion. I don't have an option for Repair folder on my Linux Mint installation. I could do a complete check file system, but I don't think that is the problem, since Thunderbird is on my primary disk with the Linux OS and home directory and everything else is working fine.
Was this helpful to you?
Quote
Toad-Hall
  • Top 10 Contributor
1741 solutions 11664 answers

re :I don't have an option for Repair folder on my Linux Mint installation.

I am talking about in Thunderbird (not any profile folder stored on computer), you said you had imported the 2018 mbox file into 'Local Folders' mail account, but when you select that 2018 folder, it is blank. All folders in Thunderbird have the option to repair the folder under properties. So something is really weird here.

Where did you download and install Thunderbird from?

This is the official download website: https://www.thunderbird.net/en-US/thunderbird/all/

Suggest you uninstall the Thunderbird program - not your profile and then download and install a fresh copy from the link. You choose your prefered language and select the download for the appropriate OS.

re :''I don't have an option for Repair folder on my Linux Mint installation.'' I am talking about in Thunderbird (not any profile folder stored on computer), you said you had imported the 2018 mbox file into 'Local Folders' mail account, but when you select that 2018 folder, it is blank. All folders in Thunderbird have the option to repair the folder under properties. So something is really weird here. Where did you download and install Thunderbird from? This is the official download website: https://www.thunderbird.net/en-US/thunderbird/all/ Suggest you uninstall the Thunderbird program - not your profile and then download and install a fresh copy from the link. You choose your prefered language and select the download for the appropriate OS.
Was this helpful to you? 0
Quote

Question owner

Ah yes, but I already tried that repair option within Thunderbird. But that didn't help. I got my version from the Ubuntu/Mint repositories when I installed Linux Mint 19. I can't imagine something being wrong with that, and I always update within a day a new version is available. I could try to uninstall like you are suggesting. I will give it a try. Thanks for the help :).

Ah yes, but I already tried that repair option within Thunderbird. But that didn't help. I got my version from the Ubuntu/Mint repositories when I installed Linux Mint 19. I can't imagine something being wrong with that, and I always update within a day a new version is available. I could try to uninstall like you are suggesting. I will give it a try. Thanks for the help :).
Was this helpful to you?
Quote

Question owner

I uninstalled and reinstalled using the latest version through the software manager of Linux Mint. This is the latest version: 60.6.1 (64-bit). It just doesn't work. When I copy my 2017 or 2018 mbox file over to the Local Folders, restart TB, and when I click on the year 2018 I see the accounts page flashing over the place where I should be seeing the emails (see screenshot) and disappearing quickly, but no emails. I think I'm going to give up :(.

I uninstalled and reinstalled using the latest version through the software manager of Linux Mint. This is the latest version: 60.6.1 (64-bit). It just doesn't work. When I copy my 2017 or 2018 mbox file over to the Local Folders, restart TB, and when I click on the year 2018 I see the accounts page flashing over the place where I should be seeing the emails (see screenshot) and disappearing quickly, but no emails. I think I'm going to give up :(.
Was this helpful to you?
Quote
Toad-Hall
  • Top 10 Contributor
1741 solutions 11664 answers

Helpful Reply

Idea worth trying: Create new existing pop mail account and then point Account Settings to look at the old pop mail account. Account Settings -> Server Settings -> Local directory to specify the old account directory and restart Thunderbird. http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Recover_Deleted_Account

Idea worth trying: Create new existing pop mail account and then point Account Settings to look at the old pop mail account. Account Settings -> Server Settings -> Local directory to specify the old account directory and restart Thunderbird. http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Recover_Deleted_Account
Was this helpful to you? 1
Quote

Question owner

Thanks for all suggestions. I'm afraid the last one did not help either, but.... it reminded me of the fact that I also have a laptop with the same email accounts. On my laptop, same Linux Mint version, same software and everything else up to date, I followed the suggestion to copy the mbox files to the Local Folder and than start TB. That helped!!! So then I moved them over to the archive folders of my main e-mail account on my laptop, and since these are imap accounts I now have all archived mails back where they belong :).

I have no idea why it did not work on my desktop, but I'm glad this is solved.

Again, thanks everyone for helping! And I learned all new things about TB.

Thanks for all suggestions. I'm afraid the last one did not help either, but.... it reminded me of the fact that I also have a laptop with the same email accounts. On my laptop, same Linux Mint version, same software and everything else up to date, I followed the suggestion to copy the mbox files to the Local Folder and than start TB. That helped!!! So then I moved them over to the archive folders of my main e-mail account on my laptop, and since these are imap accounts I now have all archived mails back where they belong :). I have no idea why it did not work on my desktop, but I'm glad this is solved. Again, thanks everyone for helping! And I learned all new things about TB.
Was this helpful to you?
Quote
Toad-Hall
  • Top 10 Contributor
1741 solutions 11664 answers

Chosen Solution

I know you have sorted this but I've an idea to test out just in case it is the reason why those mbox files did not display emails. Someone else posted a similar issue and noticed a difference in the structure of the mbox file. Perhaps this explains what occured. They were comparing an old mbox file from a while ago.

eg: 'New' - each email in mbox file started with the following...

  • From - Fri Jun 19 16:49:56 2015
  • X-Account-Key: account1
  • X-UIDL: AKdUfbwAAFXTVYQQNgVLeCXC0EY
  • X-Mozilla-Status: 0001
  • X-Mozilla-Status2: 00000000

The 'old' one started each email with this structure

  • From - Fri Jun 19 16:49:56 2015
  • X-Mozilla-Status: 0001
  • X-Mozilla-Status2: 00000000
I know you have sorted this but I've an idea to test out just in case it is the reason why those mbox files did not display emails. Someone else posted a similar issue and noticed a difference in the structure of the mbox file. Perhaps this explains what occured. They were comparing an old mbox file from a while ago. eg: 'New' - each email in mbox file started with the following... * From - Fri Jun 19 16:49:56 2015 * X-Account-Key: account1 * X-UIDL: AKdUfbwAAFXTVYQQNgVLeCXC0EY * X-Mozilla-Status: 0001 * X-Mozilla-Status2: 00000000 The 'old' one started each email with this structure * From - Fri Jun 19 16:49:56 2015 * X-Mozilla-Status: 0001 * X-Mozilla-Status2: 00000000

Modified by Toad-Hall

Was this helpful to you?
Quote

Question owner

I checked and all emails in my mbox file are beginning with the first example, so:

   From - Fri Jun 19 16:49:56 2015
   X-Account-Key: account1
   X-UIDL: AKdUfbwAAFXTVYQQNgVLeCXC0EY
   X-Mozilla-Status: 0001
   X-Mozilla-Status2: 00000000 

But another strange thing I see now.

The local folder for my main imap email account that is listed in the settings page for this account is imap.transip-1.email, and that is where all the archive folders and emails are now. I can now click a folder like 2018 and all the archived emails are there.

But when I look at the folders on my hard drive, I can see that those mbox files are empty, 0 bytes. Instead they are all in the mail.jacktummers.nl folder????

Is this how it works or can I expect another problem in time?

I checked and all emails in my mbox file are beginning with the first example, so: From - Fri Jun 19 16:49:56 2015 X-Account-Key: account1 X-UIDL: AKdUfbwAAFXTVYQQNgVLeCXC0EY X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 But another strange thing I see now. The local folder for my main imap email account that is listed in the settings page for this account is imap.transip-1.email, and that is where all the archive folders and emails are now. I can now click a folder like 2018 and all the archived emails are there. But when I look at the folders on my hard drive, I can see that those mbox files are empty, 0 bytes. Instead they are all in the mail.jacktummers.nl folder???? Is this how it works or can I expect another problem in time?
Was this helpful to you?
Quote
Patrick Firefox 0 solutions 2 answers

I had the same problem today with an mbox file from an old pop account of Thunderbird itself ... and with the right "new" structure! I checked it in a text editor and compared it with a working mbox file ... I found out, that I had to change the lines with:

X-Mozilla-Status: <number with last digit=9>

to:

X-Mozilla-Status: 0001

All messages in my mbox file had the status codes 0009 or 0019. I simply replaced all status codes with 0001 (if you have many different status codes using a Text Editor which supports a GREP search/replace might help), e.g.:

• Seach for "X-Mozilla-Status: \d\d\d\d" • Replace with: "X-Mozilla-Status: 0001"

Perhaps that will help in your case, too ...

I don't know much about these status numbers, but it seems that XXX9 means read and marked for deleted ...

So the best solution would be to subtract 8 from the last digit of the status codes, but then it is more difficult than just changing it to "0001".

For more information see http://forums.mozillazine.org/viewtopic.php?f=39&t=484449

I had the same problem today with an mbox file from an old pop account of Thunderbird itself ... and with the right "new" structure! I checked it in a text editor and compared it with a working mbox file ... I found out, that I had to change the lines with: X-Mozilla-Status: <number with last digit=9> to: X-Mozilla-Status: 0001 All messages in my mbox file had the status codes 0009 or 0019. I simply replaced all status codes with 0001 (if you have many different status codes using a Text Editor which supports a GREP search/replace might help), e.g.: • Seach for "X-Mozilla-Status: \d\d\d\d" • Replace with: "X-Mozilla-Status: 0001" Perhaps that will help in your case, too ... I don't know much about these status numbers, but it seems that XXX9 means read and marked for deleted ... So the best solution would be to subtract 8 from the last digit of the status codes, but then it is more difficult than just changing it to "0001". For more information see [http://forums.mozillazine.org/viewtopic.php?f=39&t=484449 http://forums.mozillazine.org/viewtopic.php?f=39&t=484449]
Was this helpful to you?
Quote
Matt
  • Top 10 Contributor
  • Moderator
3236 solutions 22241 answers

Patrick Firefox said

I had the same problem today with an mbox file from an old pop account of Thunderbird itself ... and with the right "new" structure! I checked it in a text editor and compared it with a working mbox file ... I found out, that I had to change the lines with: X-Mozilla-Status: <number with last digit=9> to: X-Mozilla-Status: 0001

So you edited the status of the messages from deleted (9) to new (1).

''Patrick Firefox [[#answer-1234898|said]]'' <blockquote> I had the same problem today with an mbox file from an old pop account of Thunderbird itself ... and with the right "new" structure! I checked it in a text editor and compared it with a working mbox file ... I found out, that I had to change the lines with: X-Mozilla-Status: <number with last digit=9> to: X-Mozilla-Status: 0001 </blockquote> So you edited the status of the messages from deleted (9) to new (1).
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.