Closed
Bug 714595
Opened 14 years ago
Closed 14 years ago
Simplify FillIdentityList() and getCurrentIdentity().
Categories
(SeaMonkey :: MailNews: Composition, defect)
SeaMonkey
MailNews: Composition
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philip.chee, Assigned: philip.chee)
References
Details
Attachments
(2 files)
|
4.42 KB,
patch
|
iannbugzilla
:
review+
mnyromyr
:
superreview+
|
Details | Diff | Splinter Review |
|
4.44 KB,
patch
|
Details | Diff | Splinter Review |
>> function compareAccountSortOrder(account1, account2)
>> {
>>+ var ds = Components.classes["@mozilla.org/rdf/datasource;1?name=msgaccountmanager"]
>>+ .getService(Components.interfaces.nsIRDFDataSource);
> How expensive is it to move this into the sort function? I guess most people do not have that many accounts but worth checking.
I'll fix this by porting more of jminta's thunderbird patch.
| Assignee | ||
Updated•14 years ago
|
Summary: Simplify FillIdentityList() → Bug 714595 Simplify FillIdentityList() and getCurrentIdentity().
| Assignee | ||
Comment 1•14 years ago
|
||
> - var ds = Components.classes["@mozilla.org/rdf/datasource;1?name=msgaccountmanager"]
> - .getService(Components.interfaces.nsIRDFDataSource);
This should help with the de-RDF effort.
> + accounts = accounts.filter(function isNonSuckyAccount(a) {return !!a.incomingServer;});
isNonSuckyAccount() is what Thunderbird uses!
> - // fill in Identity combobox
Drive by fix. Magnus did this for Thunderbird recently.
Assignee: nobody → philip.chee
Status: NEW → ASSIGNED
Attachment #585266 -
Flags: review?(iann_bugzilla)
| Assignee | ||
Updated•14 years ago
|
Summary: Bug 714595 Simplify FillIdentityList() and getCurrentIdentity(). → Simplify FillIdentityList() and getCurrentIdentity().
Attachment #585266 -
Flags: review?(iann_bugzilla) → review+
| Assignee | ||
Updated•14 years ago
|
Attachment #585266 -
Flags: superreview?(mnyromyr)
Comment 2•14 years ago
|
||
Comment on attachment 585266 [details] [diff] [review]
Patch v1.0 Proposed Fix.
>+ // Ugly hack to work around bug 41133. :-(
>+ accounts = accounts.filter(function isNonSuckyAccount(a) {return !!a.incomingServer;});
Inner functions should adhere to the Mozilla/SM MailNews style guide as well, e.g. IsNonSuckyAccount(aAccount) here.
>+ function sortAccounts(a, b)
Same here.
moa=me with that.
Attachment #585266 -
Flags: superreview?(mnyromyr) → superreview+
| Assignee | ||
Comment 3•14 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/edae64607f3d
> Inner functions should adhere to the Mozilla/SM MailNews style guide as well,
> e.g. IsNonSuckyAccount(aAccount) here.
Fixed.
| Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•