Paul J Stevens wrote:
That's exactly what I changed. Unless mailbox2dbmail nukes the From_
lines it should work. Ah wait. That's it. Please try to use the
mailbox2dbmail from svn-trunk.
It works now. Thank you!
Of course I have another problem now:
I have issues with some mails when migrating, but not able to identify
them in a 150MB mbox. I know the number of the message mailbox2dbmail
gives me, like:
Processed Message 726
Processed Message 727
Processed Message 728
dbmysql.c,db_query: [You have an error in your SQL blahblah
dbmail-message.c,_header_cache: insert headervalue failed
Processed Message 729
etc
Now I know it's the 729th mail in the mbox (assuming dbmail-smtp
processes the file from top to bottom), but I can't find it be cause
there are many replies and forwards which contain "From xxx
datedatedate" lines.
Grepping stuff from the syntax error doesn't help much either.
I can't figure out how to grep "\nFrom ", to get a line number. grep is
not a suitable tool even, cause it's working line by line.
Google came up with a function, but I can't even understand what
language it's in.
Maybe you know of a convenient way, some bash/perl/python script to
split an mbox message by message?
And thanks again for the date fix!
Alex