Closed Bug 12718 Opened 26 years ago Closed 26 years ago

[feature] POP3: Pref migration copies pop files to wrong location

Categories

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

x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: pmock, Assigned: dbragg)

Details

(Whiteboard: [PR1])

Build Date & Platform Bug Found: Win32 seamonkey build 1999-08-27-12-m10 installed on Gateway P166 Win98 Overview Description: The profile migration is copying pop mail files to the wrong directory location. It copies the pop files to your \user50\profile\mail. The prefs.js path points to \user50\profile\mail\server_name. Work around: I can manually move the pop folders or edit my prefs.js file to point to the correct location. Steps to Reproduce: 0) I set up a Communicator profile for POP3 mail My Inbox has a few messages. 1) Open a dos windows 2) Change directory to your \seamonkey\commercial_build\x86rel 3) type "apprunner -installer" The profile wizard appears 4) Type in a profile name or choose the default then continue Apprunner windows opens 5) Quit apprunner 6) type "apprunner -installer" again The profile manager window appear 7) Select you Communicator profile you wish to migrate 8) Click on the migrate button Apprunner launches 9) Open Messenger 10) Click on the "+" next to the pop3 server The list of local pop folders appears Notice that these folder contain no messages. They message count is "???". 11) Select the Inbox Notice the folder is empty 12) Using Windows Explorer, look where are you 'copied/migrated' pop mail folder are located compared where the directory path in the prefs.js file states. They are different. Actual Results: It copies the pop3 mail files to \users50\profile\mail but the migrated prefs.js file points to \users50\profile\mail\server_name. Expected Results: The copied pop mail files and prefs.js user pref "mail.server.server1.directory" should match locations. Additional Builds and Platforms Tested On: The parameter "apprunner -installer" does not currently work in Linux seamonkey build 1999-08-27-05-m10. I have not tried MacOS build yet. Additional Information: It correctly migrates the news files.
fyi The "apprunner -installer" does not work on MacOS seamonkey build 1999-08-27-12-m10. It fails to migrate/copy the mail and news files.
dbragg. here's what we need to do: In 4.x, you could only have POP or IMAP. (not both). so check the prefs: if "mail.server_type" is 0, it means POP. 1 = IMAP. 0 was the default. here's the logic: if "mail.server_type" == 0 then pophostname = GetPref("network.hosts.pop_server") copy 4.x "mail" directory to user50\profile\mail\<pophostname> else if "mail.server_type" == 1 then copy 4.x "mail" directory to ??? // not sure yet. see my email) else // UNIX supported "mail.server_type" other types, but don't worry about // them. we don't support them yet in 5.0 endif user_pref("network.hosts.pop_server", "tintin.mcom.com"); user_pref("mail.server_type", 1); // imap, default is 0, pop3 I've sent email about how to migrate "Local Mail" in the IMAP case.
Summary: POP3: Profile migration copies pop files to wrong location → [feature] POP3: Pref migration copies pop files to wrong location
Target Milestone: M11
Status: NEW → ASSIGNED
Whiteboard: [PR1]
I think this needs to be fixed for PR1, so I added a note to the Status Whiteboard.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. I now get the server name and create a new directory based on it.
Status: RESOLVED → VERIFIED
builds 19990914/19990915
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.