Closed
Bug 34591
Opened 25 years ago
Closed 20 years ago
Make updating unread newsgroup counts controlled by a pref.
Categories
(MailNews Core :: Backend, enhancement, P3)
MailNews Core
Backend
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: tenthumbs, Assigned: mbockelkamp)
References
Details
Attachments
(2 files, 7 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
mbockelkamp
:
review+
mbockelkamp
:
superreview+
|
Details | Diff | Splinter Review |
With a slow server, polling a news server for new headers can take a significant
amount of time. I notice it in 4.x and I find it annoying. A pref would be nice.
As I see it, this is one of those areas where user preference is important.
Comment 1•25 years ago
|
||
it doesn't poll for new headers, it just does a "GROUP" command for each
newsgroup you are subscribed to.
but this can easily be made into a pref.
changing summary.
this would be a good help wanted bug. I'll probably re-assign it to
nobody@mozilla.org
Summary: Should Mozilla poll news servers automatically? → [RFE] make updating unread newsgroup counts controlled by a pref.
Target Milestone: --- → M20
Comment 2•25 years ago
|
||
making this a help wanted bug.
Assignee: sspitzer → nobody
Keywords: helpwanted
Comment 3•25 years ago
|
||
adding tswan to the cc list. he's looking into fixing this bug.
QA Contact: lchiang → stephend
Summary: [RFE] make updating unread newsgroup counts controlled by a pref. → Make updating unread newsgroup counts controlled by a pref.
*** Bug 93229 has been marked as a duplicate of this bug. ***
Comment 5•23 years ago
|
||
tenthumbs, is this a dup of #103010?
I'm not sure if you meant not to do "GROUP" on startup, or on any expand.
*** Bug 111282 has been marked as a duplicate of this bug. ***
OS: Linux → All
Hardware: PC → All
Assignee | ||
Comment 7•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #130360 -
Flags: superreview?(scott)
Attachment #130360 -
Flags: review?(scott)
Assignee | ||
Updated•21 years ago
|
Attachment #130360 -
Flags: review?(scott) → review?(ere)
Assignee | ||
Comment 8•20 years ago
|
||
Comment on attachment 130360 [details] [diff] [review]
Patch
doesn't apply any more
Attachment #130360 -
Attachment is obsolete: true
Attachment #130360 -
Flags: superreview?(mscott)
Attachment #130360 -
Flags: review?(ere)
Assignee | ||
Updated•20 years ago
|
Keywords: helpwanted
Assignee | ||
Updated•20 years ago
|
Attachment #151600 -
Flags: superreview?(bienvenu)
Attachment #151600 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 10•20 years ago
|
||
Comment on attachment 151600 [details] [diff] [review]
Patch (updated)
> if (isServer == "true")
> {
>- var server = msgFolder.server;
>- server.performExpand(msgWindow);
>- }
>+ if (pref.getBoolPref("news.group_on_expand"))
>+ {
>+ var server = msgFolder.server;
>+ server.performExpand(msgWindow);
>+ }
>+ }
You forgot to check that the server is a news server here.
I think that by not calling updateFolder you will will miss out more than
simply not getting new messages. It may be better to implement these
preferences in the news back end somewhere.
Attachment #151600 -
Flags: review?(neil.parkwaycc.co.uk) → review-
Assignee | ||
Comment 11•20 years ago
|
||
(In reply to comment #10)
> I think that by not calling updateFolder you will will miss out more than
> simply not getting new messages. It may be better to implement these
> preferences in the news back end somewhere.
AutoCompact won't be called when not executing UpdateFolders.
Where in the backend should I place it?
nsMsgNewsFolder::UpdateFolder and nsNntpIncomingServer::PerformExpand?
Assignee | ||
Updated•20 years ago
|
Attachment #151600 -
Flags: superreview?(bienvenu)
Assignee | ||
Updated•20 years ago
|
Attachment #151600 -
Attachment is obsolete: true
Assignee | ||
Comment 12•20 years ago
|
||
Moved the code to the backend. Also fixed a warning:
c:/Mozilla/mozilla/mailnews/news/src/nsNewsFolder.h: In constructor `
nsMsgNewsFolder::nsMsgNewsFolder()':
c:/Mozilla/mozilla/mailnews/news/src/nsNewsFolder.h:153: warning: `
nsMsgNewsFolder::mUnsubscribedNewsgroupLines' will be initialized after
c:/Mozilla/mozilla/mailnews/news/src/nsNewsFolder.h:149: warning: `
PRPackedBool nsMsgNewsFolder::m_downloadMessageForOfflineUse'
c:/Mozilla/mozilla/mailnews/news/src/nsNewsFolder.cpp:122: warning: when
initialized here
There is one problem with the patch: The busy cursor doesn't go away. I
currently have no Idea what's the way to handle this. Neil?
Assignee | ||
Comment 13•20 years ago
|
||
Neil isn't on the CC list...
Comment 14•20 years ago
|
||
Comment on attachment 152604 [details] [diff] [review]
Patch v2
>+ // GetNewMessages has to be the last rv set before we get to the next check, so
>+ // that we'll have rv set to NS_MSG_ERROR_OFFLINE when offline and send
>+ // a folder loaded notification to the front end.
>+ rv = GetNewMessages(aWindow, nsnull);
>+ }
>+ if (rv == NS_MSG_ERROR_OFFLINE)
>+ {
>+ rv = NS_OK;
>+ NotifyFolderEvent(mFolderLoadedAtom);
>+ }
>+ return rv;
>+ }
>+ return NS_OK;
> }
Try changing this to
rv = GetNewMessages(aWindow, nsnull);
}
if (rv != NS_MSG_ERROR_OFFLINE)
return rv;
}
// We're not getting messages because either get_messages_on_select is
// false or we're offline. Send an immediate folder loaded notification.
NotifyFolderEvent(mFolderLoadedAtom);
return NS_OK;
}
Also a second diff with -w would be nice for review.
Assignee | ||
Updated•20 years ago
|
Attachment #152604 -
Attachment is obsolete: true
Assignee | ||
Comment 15•20 years ago
|
||
Assignee | ||
Comment 16•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #152681 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 17•20 years ago
|
||
Comment on attachment 152681 [details] [diff] [review]
Patch v2a (diff -w)
>+ // Only if news.get_messages_on_select ist true do we get new messages automatically
Nit: you forgot to translate "ist" to "is" :-P
> PRPackedBool mGettingNews;
> PRPackedBool mInitialized;
>- PRPackedBool m_downloadMessageForOfflineUse;
>- PRPackedBool m_downloadingMultipleMessages;
>
> nsCString mOptionLines;
> nsCString mUnsubscribedNewsgroupLines;
>+
>+ PRPackedBool m_downloadMessageForOfflineUse;
>+ PRPackedBool m_downloadingMultipleMessages;
>+
I don't think this change is correct...
Assignee | ||
Comment 18•20 years ago
|
||
(In reply to comment #17)
> I don't think this change is correct...
Why? What must be done instead?
Comment 19•20 years ago
|
||
I don't think you should move those variables, they're better where they were.
Assignee | ||
Updated•20 years ago
|
Attachment #152680 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #152681 -
Attachment is obsolete: true
Attachment #152681 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 20•20 years ago
|
||
Assignee | ||
Comment 21•20 years ago
|
||
Assignee | ||
Comment 22•20 years ago
|
||
Comment on attachment 152728 [details] [diff] [review]
Patch v2b (diff -w)
>Nit: you forgot to translate "ist" to "is" :-P
Corrected.
>I don't think you should move those variables, they're better where they were.
Removed that.
Attachment #152728 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 23•20 years ago
|
||
Comment on attachment 152728 [details] [diff] [review]
Patch v2b (diff -w)
>+ // Only if news.update_unread_on_expand ist true do we update the unread counts
"ist" again... don't bother with a new patch until after your superreview.
Attachment #152728 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #152728 -
Flags: superreview?(bienvenu)
Updated•20 years ago
|
Attachment #152728 -
Flags: superreview?(bienvenu) → superreview+
Assignee | ||
Comment 24•20 years ago
|
||
Comment on attachment 152728 [details] [diff] [review]
Patch v2b (diff -w)
The spelling mistake Neil pointed out will be corrected before checkin.
Attachment #152728 -
Flags: approval1.8a2?
Assignee | ||
Comment 25•20 years ago
|
||
Attachment #152727 -
Attachment is obsolete: true
Assignee | ||
Comment 26•20 years ago
|
||
Attachment #152728 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #152728 -
Flags: approval1.8a2?
Assignee | ||
Comment 27•20 years ago
|
||
Comment on attachment 153023 [details] [diff] [review]
Patch v2c (diff -w)
Corrected the spelling mistake. Taking r/sr from last version.
Attachment #153023 -
Flags: superreview+
Attachment #153023 -
Flags: review+
Attachment #153023 -
Flags: approval1.8a2?
Comment 28•20 years ago
|
||
I checked in attachment 153022 [details] [diff] [review].
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Attachment #153023 -
Flags: approval1.8a2?
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
Comment 31•15 years ago
|
||
Umm, does TB3.1 even automatically download headers (not only GROUP) on expand? Is this another change which makes this one obsolete?
You need to log in
before you can comment on or make changes to this bug.
Description
•