Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppleMail mbox import issue with structure #28

Closed
cleidigh opened this issue Oct 25, 2019 · 20 comments · May be fixed by #114
Closed

AppleMail mbox import issue with structure #28

cleidigh opened this issue Oct 25, 2019 · 20 comments · May be fixed by #114
Assignees

Comments

@cleidigh
Copy link
Collaborator

cleidigh commented Oct 25, 2019

Issue where mbox files from Apple Mail that have a folder structure do not import the structure.

@cleidigh cleidigh self-assigned this Oct 25, 2019
@cleidigh
Copy link
Collaborator Author

( from William)
This is what I know:

  • ImportExportTools NG version: 4.0.4
  • Thunderbird version: 68.2.0 (32-bit)
  • Export from Apple Mail options/file format: There are no options to select. All I do is choose a folder to store the structure.
  • Confirm you were using import (mbox?) With subfolders: I am using "Import one or more mbox-files with subfolders" which is option 2.

I am using MacOS Catalina Version 10.15 and Apple Mail version 13.0 (3594.4.19).

My folders are NOT named *. sbd! Just normal folder names.

Top level looks like this:

Folder "Test"
File (which turns out to be a folder as well): "Test.mbox".

@cleidigh
Copy link
Collaborator Author

Can you try exporting a simple folder structure with just a couple test e-mails and see if that imports correctly. YouCould then send me that file so that I can test it as well

@WilliamNxt
Copy link

Hi Chris
I've created a folder structure looking like this:
Top Level
Level 1
Level 2

Each folder holds one email only.

I don't seem to be able to send you the folders, but I have attached some screen shots illustrating how things look from my side.

Let me know how I can get the folder structure across to you.

Text is in Danish (but that is pretty straight forward :))

Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5

@cleidigh
Copy link
Collaborator Author

@WilliamNxt
Thanks! I assume even with simple export none of the above works in terms of import, correct?
if you enable the debugger under advanced settings are there any errors?
I think I can also create a test export to test.

@WilliamNxt
Copy link

I've replied by email.

@cleidigh
Copy link
Collaborator Author

@WilliamNxt
I was able to export an inbox folder from Apple Mail 12.0 on Mojave.
it successfully imported on Thunderbird 68.2
I have created a test folder for people to be able to test "controlled" input files.
Can you try to import this file? it contains a single file with about five messages.
https://github.com/thundernest/import-export-tools-ng/tree/master/tests/import/AppleMail/INBOX.mbox

@cleidigh
Copy link
Collaborator Author

cleidigh commented Nov 5, 2019

@WilliamNxt
Any update/ success?

@WilliamNxt
Copy link

I'm sorry, but I still need to know how to download the files in inbox.mbox.

@cleidigh
Copy link
Collaborator Author

cleidigh commented Nov 5, 2019

sorry I forget giving or not giving instructions on this
when you get to an individual file there will be able to use the "Raw button", right click on that and bring up able menu where you can save as.
BTW I just went through a couple other issues on OS X with no problem importing so I think we will get to the bottom of this.

@WilliamNxt
Copy link

This is what it looks like in my folder after save using raw. Can't import.

Could you send me the file and the folder by normal email, please?

Screen shot after RAW-save

@WilliamNxt
Copy link

Sorry, just found it in my mail folder.

It contains 6 mails, but as you can see, the name of the folder is "mbox.txt".
Mailbox import 1
Mailbox import 2

@Joergen
Copy link

Joergen commented Nov 5, 2019

The reason the folder is named "mbox.txt" is that Windows append the file extension (.txt) to the file when you download / save it to your computer. You might not see the file extension when you look at the downloaded file because Windows hide file extensions for known file types by default.

@cleidigh
Copy link
Collaborator Author

cleidigh commented Nov 7, 2019

@WilliamNxt
After taking into account the correct comment by @Joergen , it seems as if you imported the mailbox okay. Any success with your real mail import?

@WilliamNxt
Copy link

@Joergen's comment unfortunately doesn't change anything.

Please read through my posts again.

I have never had a problem importing a single mbox-file with a number of emails.

I have two problems:

The name of the imported folder has the name structure "mbox###" and not the folders name, e.g. "Mom" or whatever name the folder had in macMail and when it was eksported. Please note that my posts above I have included a screen shot with a folder with the name "Test Top Level". This is the name the mailbox should be given when imported, not "mbox###". So, problem number 1 is INCORRECT NAMING of imported folders.

Structures are not imported as a structure but as "mbox###"-files that are all imported to the same folder in TBird. So, problem number two is NO STRUCTRE.

@cleidigh
Copy link
Collaborator Author

cleidigh commented Nov 8, 2019

@WilliamNxt
can you e-mail me a simple structured export with junk e-mail so I could test exactly what you are using
test1@kokkini.net

@cleidigh
Copy link
Collaborator Author

cleidigh commented Nov 12, 2019

@WilliamNxt
I found out that there is a specific option required to export subfolders. the option button within the dialogue when you save the folder.
I just tested that successfully with a top and 1 subfolder .

I found a reference about the naming structure and some of its oddities.
http://www.needhelp4mac.com/2016/05/export-apple-mail/

Note the comments on the exported folder names. it looks like you have to have some named export folders otherwise you get numbers.

@WilliamNxt
Copy link

WilliamNxt commented Nov 12, 2019 via email

@cleidigh
Copy link
Collaborator Author

enjoy your holiday!
(good time to forget about e-mail)

@obar
Copy link

obar commented May 21, 2020

I discussed this topic in the wrong thread (oops) and have a python script to reformat mbox exports from Apple Mail. Just tying the background info to the correct issue here.

obar added a commit to obar/import-export-tools-ng that referenced this issue May 21, 2020
This script allows users to import from Apple Mail, maintaining folder
names and structure.

Closes thunderbird#28
obar added a commit to obar/import-export-tools-ng that referenced this issue May 21, 2020
This script allows users to import from Apple Mail, maintaining folder
names and structure.

Closes thunderbird#28
@jobisoft
Copy link
Collaborator

Time to close this. See:
https://github.com/thundernest/import-export-tools-ng/wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants