Closed
Bug 64772
Opened 24 years ago
Closed 24 years ago
toolbar "Mark -> All Read" marks current news message as unread
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: andreas.premstaller, Assigned: sspitzer)
References
Details
Attachments
(1 file)
2.85 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010108
BuildID: 2001010804
Using the "As read->All read"-command on the toolbar, the currently selected
news message is marked as Unread. All other messages in the newsgroup are
correctly marked as read. This problem does not appear if you use the menu
"Message->Mark->All read".
Reproducible: Always
Steps to Reproduce:
1. Open a news group, select any message
2. Status of this message turns to "Read"
3. On the toolbar, select "As Read->All Read"
Actual Results: The selected message is marked "Unread". All other messages are
marked "Read".
Expected Results: All the messages in the newsgroup, including the current one,
are marked "Read".
This happens only if you use the toolbar-command. It works correctly using the
menu "Message->Mark->All Read"
QA Contact: esther → stephend
Summary: "As Read->All Read" marks current news message as unread → "As Read->All Read" marks current news message as unread
Comment 1•24 years ago
|
||
*** This bug has been marked as a duplicate of 64326 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•24 years ago
|
||
Reopening. This bug is not about whether or not the read-attribute is toggled
when selecting "mark as read".
It deals with a different behaviour of the same command (Mark->All Read)
depending on whether it is activated via the menu (Message->Mark->All read,
works correctly) or via the toolbar icon Mark->All Read.
Furthermore, regardless whether the current message is marked Read or Not Read,
after the toolbar command "Mark-> all *read*", it is always marked *Unread*
(which is plain wrong).
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 3•24 years ago
|
||
To fix this bug remove the observes from line 1082 of mailWindowOverlay.xul
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blake, Timeless is this a simple thing for either of you to correct?
Assignee | ||
Comment 5•24 years ago
|
||
accepting. I'll try out what neil suggests.
Status: NEW → ASSIGNED
Summary: "As Read->All Read" marks current news message as unread → toolbar "Mark -> All Read" marks current news message as unread
Comment 6•24 years ago
|
||
Sorry, removing the observer only fixes the menu, I think you also need to add
buttonaction="goDoCommand('cmd_markAsRead')"
N.B. I don't know what will happen if the command is unavailable.
Comment 7•24 years ago
|
||
Another way is to ask skin authors to make dual menubutton buttons inherit the
observer attribute from the buttonobserver attribute (as with buttonaction and
buttontooltiptext). Then you can simply rename the observer attribute to
buttonobserver in the dual menubutton. Using this method clicking the button
does toggle the read mark. The button still doesn't disable when the menu does :-(
Comment 8•24 years ago
|
||
Sorry, that last comment is wrong, anonymous content cannot inherit observers.
Comment 9•24 years ago
|
||
My latest suggestion: change line 1085 of mailWindowOverlay.xul:
<menupopup ... oncommand="event.preventBubble()">
The disadvantage of this method is that you can only use the toolbar to mark all
read if a message is already selected.
Reporter | ||
Comment 10•24 years ago
|
||
There is more strange behaviour about the Mark-button. Here is a comparison of
what actions the single items of the Message->Mark-menu and of the Mark-toolbar
button call:
Command Menu Message->Mark> | Toolbar Mark>
------------------------------------------------------------------------------
As Read Toggle read status (bug #64326) | nothing (bug #64242)
|
Thread As Read Mark all messages in the | Mark all messages in the
selected thread as read | selected thread as read
| except for the currently
| selected message that is
| always marked as unread.
|
All Read Mark all messages in the | Mark all messages in the
current newsgroup as read | newsgroup as read except
| for the currently selected
| message that is always
| marked as unread.
|
Flag Toggle Flag-attribute | Toggle Flag-attribute
Leave read-status unaltered | Toggle read-status
Analysis:
The common cause for all the strange behaviour using the Mark>-commands in the
toolbar seems to be that *after* the execution of the correct command the
read-status of the current message is once more toggled.
So, the selected "Mark>As Read" toggles the read-status once, and the second
toggle (that would always be called, I don't know why) toggles read-status back
to original, viola, bug #64242.
Similarly, "Mark Thread As/All Read" first executes the right command, marking
all messages as read, and than toggles the status of the current message to unread.
Flag, well, explains itself.
Comment 11•24 years ago
|
||
*** Bug 66981 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 12•24 years ago
|
||
From bug 66548:
------- Additional Comments From bienvenu@netscape.com 2001-01-25 10:32 -------
It's a front end problem - if you do a mark all read, it does a mark all read
command, but also does a mark messages read command, which toggles the mark
readness of the current selection. here's the stack trace:
nsNewsDatabase::SetHdrReadFlag(nsIMsgDBHdr * 0x08b07d80, int 0x00000000) line 379
nsMsgDatabase::MarkHdrReadInDB(nsIMsgDBHdr * 0x08b07d80, int 0x00000000,
nsIDBChangeListener * 0x00000000) line 1585
nsMsgDatabase::MarkHdrRead(nsMsgDatabase * const 0x08ed2310, nsIMsgDBHdr *
0x08b07d80, int 0x00000000, nsIDBChangeListener * 0x00000000) line 1861 + 26 bytes
nsMsgDatabase::MarkRead(nsMsgDatabase * const 0x08ed2310, unsigned int
0x00002a31, int 0x00000000, nsIDBChangeListener * 0x00000000) line 1603 + 29 bytes
nsMsgHdr::MarkRead(nsMsgHdr * const 0x08b07d80, int 0x00000000) line 232 + 31 bytes
nsMessage::MarkRead(nsMessage * const 0x08b01d14, int 0x00000000) line 342 + 30
bytes
nsMsgFolder::MarkMessagesRead(nsMsgFolder * const 0x028a35ac, nsISupportsArray *
0x06657330, int 0x00000000) line 2100 + 27 bytes
nsMsgMessageDataSource::DoMarkMessagesRead(nsISupportsArray * 0x066576b0, int
0x00000000) line 1939
nsMsgMessageDataSource::DoCommand(nsMsgMessageDataSource * const 0x04c63f20,
nsISupportsArray * 0x066576b0, nsIRDFResource * 0x04c719e0, nsISupportsArray *
0x00000000) line 725 + 14 bytes
CompositeDataSourceImpl::DoCommand(CompositeDataSourceImpl * const 0x04b99510,
nsISupportsArray * 0x066576b0, nsIRDFResource * 0x04c719e0, nsISupportsArray *
0x00000000) line 1329 + 24 bytes
It might be a problem with the mark button, or some problem in the js code.
*** Bug 66548 has been marked as a duplicate of this bug. ***
Comment 14•24 years ago
|
||
Of course it does a mark message read. The mark all read menuitem's oncommand
event is bubbling up to the menubutton which is observing cmd_MarkAsRead.
The first alternative is to stop the event bubbling. The easiest place to do
this is in the menupopup.
The second alternative is to code the buttonaction handler in the menubutton
instead of using the observer. This allows you to mark all read without
selecting a message in the same manner as Communicator. Unfortunately clicking
the button then has no effect :-(
The third alternative is for Mozilla to abandon menubuttons and revert to
separate menu and button controls (the File button used to work like this).
Assignee | ||
Comment 15•24 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 16•24 years ago
|
||
Somewhat overkill, though, surely? (I still think it should be done in the popup).
Assignee | ||
Comment 17•24 years ago
|
||
neil, give me a patch.
Assignee | ||
Comment 18•24 years ago
|
||
oops, I meant to say:
neil, if you have a better fix, please elaborate (or provide a patch).
VERIFIED FIXED - Mac 2001020204, Linux 2001020208 and Windows NT 2001020204.
NOTE: If Neil has a better patch, I can wait to mark this VERIFIED until it's
checked into the tree.
Marking VERIFIED. Neil you can re-open this or file a new bug if you have a
patch you want to commit. Thanks.
Status: RESOLVED → VERIFIED
Comment 21•24 years ago
|
||
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•