-
Notifications
You must be signed in to change notification settings - Fork 6
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
some problem.. log below #2
Comments
I'll do my best to help you, but I must warn you that its been a long time since I wrote emlx2maildir, so my knowledge of it has become a little rusty. I have a few questions to better understand your situation:
Mike On May 14, 2013, at 9:22 AM, cusco wrote:
|
Hello, the Mac OS X version is 10.8.3 - I'm not aware of what changed. I do some programming now and then, but never wrote any python what so ever. I can understand that current problem is on line 107 boundry = contents.find("\x0a") <-- this means it will find the first ocurrence of a new line feed "\n" ? as a string position? can't understand what went wrong there.. but then again, python is not my thing... |
You very well might be the first person to try using emlx2maildir on OSX 10.8; we might need to adapt it to some change in the format. I do not have a 10.8 machine available to test with. Run emlx2maildir with --verbose. Then it will print out the name of each .emlx file as it converts it. This will let you determine the specific .emlx file that we're having trouble with. Open the troublesome .emlx in a text editor. Does it generally conform to the format I describe here: http://mike.laiosa.org/2009/03/01/emlx.html? It should roughly be a number on a line by itself, followed by an email message including headers, followed by some XML. The error message you reported in your first email suggests that the program is unable to parse the number. If the contents of the message are not confidential, could you zip up the .emlx file and send it to me? Mike On May 15, 2013, at 3:27 AM, cusco wrote:
|
Hello, it errors out on the following file: Filipe Older.mbox/2010.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/2/8/Messages/._82646.emlx: AppleDouble encoded Macintosh file this is a weird file, it starts with a dot . perhaps I should ignore files starting with ._ ? |
hit another problem Converting message 'Filipe Older.mbox/2010.mbox/Junk.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/2/0/1/Messages/102627.emlx |
restarted the proccess and it went past that file.. lets see.. I'll tell you if it works |
Cool. Not sure why it would have an error once and not a second time. Be sure that Mail.app is closed - you don't want it changing things out from under you. On May 16, 2013, at 7:24 AM, cusco [email protected] wrote:
|
I copied all the folders to a disk and am running the script in a machine that is not using the files... |
Hi, again same problem... IOError: [Errno socket error] [Errno 104] Connection reset by peer Can there be a way to make the script resume?? |
it keeps on erroring each time at a different file... it would be nice to skip the parsed files... . |
It would actually be somewhat tricky to make it pick up where it left off, but I pushed a change this morning that should stop you from getting errors in the first place. Mike On May 17, 2013, at 7:03 AM, cusco [email protected] wrote:
|
Hi, Lets see how it goes. Thank you |
[mail: /home/fbarrancos]# du -sh test/ && sleep 10 && du -sh test/ |
Hello, It still errored out, I'm going to restart the proccess... Converting message 'More.mbox/[email protected]/INBOX.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/8/4/Messages/48789.emlx' will it error agian in this file? Would you like a copy of this file? |
Could you show me the XML from the file with the error? Mike On May 21, 2013, at 10:07 AM, cusco [email protected] wrote:
|
I got similar errors for some of my users. It's because some invisible chars show up in the plist at the end of the .emlx file. I fixed that by closing Mail, opening the .emlx file in TextWrangler or vi, and remove the invisible chars (TextWrangler won't show them by default, you have to select View -> Text Display -> Show Invisibles). |
Hi, I tried the version on http://mike.laiosa.org/software/emlx2maildir/ with --recursive and creates the maildir folder structure but nothing inside besides folder names
used the "https://raw.github.com/mlaiosa/emlx2maildir/master/emlx2maildir.py" nad got the following:
[mail: /home/fbarrancos]# python emlx2maildir.py ./Filipe\ Older.mbox/ test --recursive
Converting './Filipe Older.mbox' -> 'test/'
Converting './Filipe Older.mbox/2010' -> 'test/.2010'
Recursing into './Filipe Older.mbox/2010.mbox/317E4A9E-D814-4557-993B-F2C19135E30E'
Recursing into './Filipe Older.mbox/2010.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data'
Recursing into './Filipe Older.mbox/2010.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/2'
Recursing into './Filipe Older.mbox/2010.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/2/8'
Traceback (most recent call last):
File "emlx2maildir.py", line 220, in
main()
File "emlx2maildir.py", line 214, in main
dry("Converting message %r" % msg, convert_one, msg, maildir)
File "emlx2maildir.py", line 201, in dry
return act(_args, *_kwargs)
File "emlx2maildir.py", line 107, in convert_one
length = long(contents[:boundry])
ValueError: invalid literal for long() with base 10: ''
what can I do?
I have got 50G of files like
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259087.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259932.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259005.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259297.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259566.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259904.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259578.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/._259575.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259669.emlx
./Filipe Older.mbox/2006.mbox/Sent.mbox/317E4A9E-D814-4557-993B-F2C19135E30E/Data/9/5/2/Messages/259208.emlx
The text was updated successfully, but these errors were encountered: