Closed Bug 287439 Opened 19 years ago Closed 19 years ago

Don't copy the pop3 password pref when migrating from netscape 4.x

Categories

(MailNews Core :: Profile Migration, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mscott, Assigned: mscott)

Details

Attachments

(1 file)

When we migrate a profile from netscape 4.x, we copy over the pref:

mail.pop_password

we should just clear this pref instead since we don't use it.
Attached patch the fixSplinter Review
m_prefs can't be null here.

we ignore the return value because ClearPref throws an error if the pref does
not exist. 

I also removed some dead code inside of a CAN_UPGRADE_4x_PASSWORDS ifdef.
Attachment #178405 - Flags: superreview?(bienvenu)
Attachment #178405 - Flags: review?(dveditz)
Comment on attachment 178405 [details] [diff] [review]
the fix

+    m_prefs->ClearUserPref(PREF_4X_MAIL_POP_PASSWORD); // intentionally ignore
the return value


you could just say (void) m_prefs->Clear... which carries the same meaning
*and* silences any compiler warnings :-)
Attachment #178405 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 178405 [details] [diff] [review]
the fix

r=dveditz (what David said)
Attachment #178405 - Flags: review?(dveditz) → review+
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: