Closed
Bug 1025976
Opened 10 years ago
Closed 8 years ago
Remove unused folder flag GotNew
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 48.0
People
(Reporter: rkent, Assigned: bogdan.stefan3, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [good first bug])
Attachments
(1 file, 3 obsolete files)
6.94 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
As far as I can tell, the folder flag GotNew is set and cleared in a few places in mailnews, but never actually used for anything. Rather than try to fix it or test it in bug 1025113, I'd like to just remove it. There are already too many other indicators of new messages floating around.
Updated•8 years ago
|
Mentor: mkmelin+mozilla
Whiteboard: [good first bug]
Assignee | ||
Comment 1•8 years ago
|
||
I think I removed the flag completely. Ran the unit tests successfully. This is my first Thunderbird bug, is everything ok(the patch submission)?
Comment 2•8 years ago
|
||
Didn't look in detail yet, but one thing you should do is rev the uuid for the nsMsgFolderFlags.idl as it's changed. (Generate a new uuid, on linux you can use the uuidgen command) Then see http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree#Getting_the_patch_reviewed
Assignee: nobody → bogdan.stefan3
Assignee | ||
Comment 3•8 years ago
|
||
How's this? So every time a idl file is modified, i need to change its UUID?
Attachment #8728050 -
Flags: review?(mkmelin+mozilla)
Updated•8 years ago
|
Attachment #8727996 -
Attachment is obsolete: true
Comment 4•8 years ago
|
||
Comment on attachment 8728050 [details] [diff] [review] 1025976 patch v2 Review of attachment 8728050 [details] [diff] [review]: ----------------------------------------------------------------- Yes, this looks good. r=mkmelin Thx Bodgan!
Attachment #8728050 -
Flags: review?(mkmelin+mozilla) → review+
Updated•8 years ago
|
Isn't the style in that file to NOT remove unused flags, but rename them to UnusedX ?
Status: NEW → ASSIGNED
Flags: needinfo?(rkent)
Reporter | ||
Comment 6•8 years ago
|
||
(In reply to :aceman from comment #5) > Isn't the style in that file to NOT remove unused flags, but rename them to > UnusedX ? Yes that would be preferable.
Flags: needinfo?(rkent)
Bogdan, please update the patch to just rename the GotNew to Unused7 (or what number comes next) and update the comment above it to say what that constant was used for in the past. See Unused4 above. It is so that we do not erroneosly reuse that flag value for other purposes. Existing folders may still contain that value it we just need to ignore it and not suddenly make it mean something else.
Flags: needinfo?(bogdan.stefan3)
Keywords: checkin-needed
Assignee | ||
Comment 8•8 years ago
|
||
Here it is. Sorry for the mistake.
Attachment #8728050 -
Attachment is obsolete: true
Flags: needinfo?(bogdan.stefan3)
Attachment #8735100 -
Flags: review?(acelists)
Comment on attachment 8735100 [details] [diff] [review] 1025976 patch Review of attachment 8735100 [details] [diff] [review]: ----------------------------------------------------------------- Yes, thanks. I haven't run the tests but only checked the change in nsMsgFolderFlags.idl. I assume Magnus did review it fully for the first r+. ::: mailnews/base/public/nsMsgFolderFlags.idl @@ +76,5 @@ > /// This used to be used for virtual newsgroups > const nsMsgFolderFlagType Unused1 = 0x00008000; > /// Used to be for categories > const nsMsgFolderFlagType Unused4 = 0x00010000; > + /// Used to be for new msgs in a folder Please remove the trailing whitespace you add here.
Attachment #8735100 -
Flags: review?(acelists) → review+
Assignee | ||
Comment 10•8 years ago
|
||
Ugh, Atom did it. Well I've run the tests the first time and they are fine. I guess Magnus did it too.
Attachment #8735100 -
Attachment is obsolete: true
Attachment #8735111 -
Flags: review?(acelists)
Comment 11•8 years ago
|
||
Comment on attachment 8735111 [details] [diff] [review] 1025976 patch Review of attachment 8735111 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Attachment #8735111 -
Flags: review?(acelists) → review+
Keywords: checkin-needed
Comment 12•8 years ago
|
||
https://hg.mozilla.org/comm-central/rev/d9df380b42b0786499f96ace95c64a53e5444389 Bug 1025976 - Remove GotNew folder flag. r=aceman
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 48.0
You need to log in
before you can comment on or make changes to this bug.
Description
•