Closed Bug 17954 Opened 25 years ago Closed 25 years ago

[DOGFOOD][PP] fail to migrate 4.x local mail when user had IMAP in 4.x

Categories

(MailNews Core :: Profile Migration, defect, P3)

PowerPC
Mac System 8.6
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: sspitzer)

Details

(Whiteboard: [PDT+] 11/19)

this is mac only.
Target Milestone: M12
Status: NEW → ASSIGNED
accepting.  now that 16551 is fixed, I can debug and fix this.

this bug is probably duplicate, now that I think about it.
Hardware: PC → Macintosh
Summary: [DOGFOOD] fail to migrate 4.x local mail when user had IMAP in 4.x → [DOGFOOD][PP] fail to migrate 4.x local mail when user had IMAP in 4.x
Target Milestone: M12 → M11
marking m11.

losing all the local mail, if they used IMAP in 4.x, is pretty nasty.
phil, do you think this is an M11 stopper?
Target Milestone: M11 → M12
changed my mind.  marking m12.
Whiteboard: [PDT+]
Putting on PDT+ radar.
Sounds like the duplicate bug is 14619.
I think I know what's going on.

on the mac, the "news.directory" pref and the "mail.imap.root_dir" prefs are not
set, so we assum the default, which is something like HD:Preferences:Netscape
Users:<profile>:News and HD:Preferences:Netscape Users:<profile>:IMAPMail

for some reason, mail.directory is set.  (but only if the user used IMAP in
4.x.  if they used pop it's not set.)

in the migration code, if one of those prefs is set, we do copy the folder to
the side, and rename the copy News5, Mail5, or IMAPMail5.

look for HD:Preferences:Netscape Users:<profile>:Mail5

I have it.

remove it, and remove Users50 and the Mozilla Registry, and re-migrate and
you'll see it get recreated.  it get's used, it's just in the wrong place.

I'll add code to do this:
if mail.directory, news.directory, or mail.imap.root_dir is set to same things
as what the default implies, treat it like it wasn't set, meaning don't do the
"Mail5" "News5" "ImapMail5" thing.

something to note, local mail does get migrated, it's just not where you suspect
it is.  everything works, though.
one problem to note:  if you keep migrating, the Mail5 directory may get stomped
on.

I need to open a bug to make anytime we migrate, we make sure the target
directiry is unique.

I'll do that now.
Whiteboard: [PDT+] → [PDT+] 11/19
Blocks: 18471
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
this is fixed.

now, when you migrate a 4.x account on the mac, "Local Mail" goes to the right
place.

Users50/<profile>/Mail/Local Mail
Blocks: 18951
Status: RESOLVED → VERIFIED
verified on M11 build 1999111612
No longer blocks: 18471
No longer blocks: 18951
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.