Hello Alexander,
I took a look at the code and I think I might have found were this bug
comes from.
Matthias Firner wrote:
>
> I was able to further pin down this bug. I deleted a lot from my
> prefs.js, retaining only lines starting with
> user_pref("mail.*);
> Thunderbird still crashes, but it doesn't, if I leave everything
> *execept* these lines.
> So it's got to be something in there.
> Next is divide et impera:
> I deleted lines from prefs.js to see which ones would keep thunderbird
> crashing.
> This single line keeps Thunderbird crashing, when it tries to import a
> Mozilla 1.x Profile:
>
> user_pref("mail.server.server1.newsrc.file", 0);
>
> Upon removal of this line, Thunderbird imported both my test an my real
> Profile flawlessly (which wolved my problem, at last).
> To solve this bug on code-level, some context might be useful.
Upon review of the thunderbird migration code, the context seems to be
of no relevance here.
If I am right, the problem is in CopyMailFolders() which is defined in
mailnews/mail/components/migration/src/nsSeamonkeyProfileMigrator.cpp
in line 694 starting with
else if (StringEndsWith(prefName, nsDependentCString(".newsrc.file")))
which matches my prefs.js line casuing all the trouble.
CopyMailFolders() expects a string following the .newsrc.file statement,
giving the path of the profiles' newsrc file.
However, in my case, there is no string but a literal 0, which probably
confuses one of the following function calls -- I wasn't able to pin it
down any further, as it gets quite confusing there for a mere user with
only minimal knowledge of c++ like me. Maybe one the authors of this
particular code, Ben Goodger or Scott MacGregor could verify this.
Kind regards,
Matthias.
--
"In einer irrsinnigen Welt vern�nftig sein wollen,
ist schon wieder ein Irrsinn f�r sich." (Voltaire)