Closed Bug 387271 Opened 18 years ago Closed 18 years ago

Newsgroups list is reloaded every time (hostinfo.dat isn't loaded)

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markushossner, Assigned: markushossner)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a7pre) Gecko/200707072121 SeaMonkey/2.0a1pre The newsgroups list is reloaded every time when opening the subscribe dialog cause the hostinfo.dat isn't loaded. nsNntpIncomingServer::LoadHostInfoFile() loads the wrong file mNewsrcFilePath instead of mHostInfoFile and every time after reading a line mHasSeenBeginGroups is set back to PR_FALSE. Reproducible: Always
Attached patch PatchSplinter Review
Patch fixes the problems mentioned above.
Attachment #271383 - Flags: superreview?(bienvenu)
Attachment #271383 - Flags: review?(neil)
Comment on attachment 271383 [details] [diff] [review] Patch this is a trunk-only problem, right? In other words, I messed this up when getting rid of nsFileSpec...thx for the patch!
Attachment #271383 - Flags: superreview?(bienvenu) → superreview+
Assignee: mail → markushossner
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 271383 [details] [diff] [review] Patch >- if (strncmp(line,"begingroups", 11) == 0) { >+ if (PL_strncmp(line,"begingroups", 11) == 0) { And here I was thinking the latest fad was to use the CRT where possible.
Attachment #271383 - Flags: review?(neil) → review+
Keywords: checkin-needed
> And here I was thinking the latest fad was to use the CRT where possible. See bug 379070 comment 161 and 166.
Keywords: checkin-needed
Landed on trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
(In reply to comment #4) >>And here I was thinking the latest fad was to use the CRT where possible. >See bug 379070 comment 161 and 166. I meant CRT, not nsCRT i.e. strcmp isntead of nsCRT::strcmp :-P
Version: unspecified → Trunk
Component: MailNews: Subscribe → MailNews: Message Display
QA Contact: search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: