Closed Bug 88633 Opened 24 years ago Closed 21 years ago

Attachments menu persists even when INBOX selected.

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.8beta1

People

(Reporter: stephend, Assigned: neil)

Details

(Whiteboard: fixed-aviary1.0)

Attachments

(4 files, 1 obsolete file)

Build ID: 2001-06-29-14 Observed using IMAP, haven't checked POP3 yet. Summary: Attachments menu persists even when INBOX selected. Steps to Reproduce: 1. Click on any message that has attachments. We know it gets the attachments sub-menu under File. (actually sometimes it doesn't, but that is a different bug). 2. Go back to the folder pane and click on INBOX. Expected Results: There is no "Attachments" sub-menu underneath the File menu item. Actual Results: There is an "Attachments" sub-menu item underneath File.
I should mention I saw this on the trunk, haven't checked the nsbranch yet.
Saw this on Win2K, OS--> All. Plat--> All.
OS: Mac System 8.5 → All
Hardware: Macintosh → All
Still an issue in 2001121300 linux
reassigning to olga, she checks menu items for correctness based on selection.
QA Contact: esther → olgam
selecting inbox still keeps the mail selected. So the attachment menu is for the still selected mail.
Status: NEW → RESOLVED
Closed: 24 years ago
Component: MIME → Mail Window Front End
Resolution: --- → WORKSFORME
Henrik, did you look at the screenshot?
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
A few comments about this bug: 1) I don't believe there is any other menu item in the 3pane top-level menu that disappears when inapplicable, and I don't think the Attachments menu item should disappear either. If a single message with attachments is selected in the thread pane (with or without the message pane open), then the Attachments item should be enabled with the appropriate submenu. In any other case, the Attachments item should be disabled and have no submenu. 1a) The Attachments item in the standalone message window should *also* not hide the menu, but disable it, if the message it's displaying does not have an attachment. 2) The nature of the persistence is: if you click on any item in the folder tree -- an account, a folder -- the menu item continues to be initialized with the last selected message's attachments. The menu apparently changes only when a new message is *selected* -- in fact, the submenu persists in this situation: - Select non-attachment message; open File menu, Attachments item is hidden - Select attachment message; do NOT open File menu - Select some folder or account other than the current one Open the File menu now, the Attachments item is *still* there! I think I will take a look at fixing this bug, to make it behave per item (1) above. Not for a couple weeks, tho. Reducing severity, this is hardly blocking any function. If you choose an action on an attachment where there shouldn't be any listed, the action performs fine.
Severity: major → normal
(Following up on my comment #8) > 1) I don't believe there is any other menu item in the 3pane top-level menu > that disappears when inapplicable, Well, I was wrong about this. File|Get Next NN Messages is only visible with a newsgroup selected, and the Message menu has several additional items if a newsgroup message is selected. I don't think that's right, tho. > I don't think the Attachments menu item should disappear either. I still think this is the case. However, there is an instance where I feel it is advisable to hide the Attachments menu: in the 3pane, when the Message Pane is not visible (splitter collapsed). This is because the Attachments Menu is initialized from values that have been loaded into the Attachments Panel in the displayed envelope. If the envelope is not visible, then for every initialization of the menu, you'd have to load the message and parse for headers; this seems like a lot of work to do before a menu popup. An alternative would be to disable the menu item if the envelope is not visible, but this would leave open the obvious: "Why doesn't the attachments menu work when I've got a message with attachments selected?" I think in the typical use of hiding the message pane, it is hidden pretty much all the time for that user; she will use a standalone message window to see the message, and the Attachments menu will always be visible in that window. > If a single message with attachments is selected in the thread pane > (with or without the message pane open), then the Attachments item > should be enabled with the appropriate submenu. In any other case, the > Attachments item should be disabled and have no submenu. > > The Attachments item in the standalone message window should *also* not > hide the menu, but disable it, if the message it's displaying does not have > an attachment. This patch implements these changes, including hiding the menu only in the 3pane if the message pane is not visible.
Attachment #143608 - Flags: review?(mscott)
Comment on attachment 143608 [details] [diff] [review] Patch: diff -u against 1.7b-0310 adding a reviewer
Attachment #143608 - Flags: superreview?(mscott)
Attachment #143608 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #143608 - Flags: review?(mscott)
Attached patch Alternative (obsolete) — Splinter Review
Although Mike has some good ideas I think his patch is over-complicated, so I devised my own implementation; while the code to hide/show the attachments menu is loosely based on Mike's patch the disabling code is completely different. Oh, and I also renamed IsThreadAndMessagePaneSplitterCollapsed - Thunderbird already uses IsMessagePaneCollapsed anyway.
Comment on attachment 144740 [details] [diff] [review] Alternative Let's see if I've made any blunders ;-)
Attachment #144740 - Flags: review?(Stefan.Borggraefe)
Comment on attachment 144740 [details] [diff] [review] Alternative This doesn't disable the Attachment menu when you first select a messsage with an attachment and then one with none. :-(
Attachment #144740 - Flags: review?(Stefan.Borggraefe) → review-
I agree, that is a cleaner way to handle the disabling of the menu item. The advantages of experience... Neil, does your patch work in the standalone window? I think the reason I had added separate InitFileAttachmentsMenu() functions in messageWindow.js and msgMail3PaneWindow.js was because IsThreadAndMessagePaneSplitterCollapsed() (now IsMessagePaneCollapsed()) wasn't defined within the standalone context; therefore, I couldn't call it directly from mailWindowOverlay.js. Altho I see it's being called in commandGlue.js, so I'm not sure any longer.
OK, so it looks like my way is a runner, once I sort out the issues...
Assignee: mscott → neil.parkwaycc.co.uk
Attachment #144740 - Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Attachment #144828 - Flags: review?(Stefan.Borggraefe)
Comment on attachment 144828 [details] [diff] [review] Addressed review comments >- message_menuitem.setAttribute('checked',!IsThreadAndMessagePaneSplitterCollapsed()); >+ message_menuitem.setAttribute('checked',!IsMessagePaneCollapsed()); Nit: please add a space between the two parameters. I know this wasn't you, but if you change that line anyway... ;-) Other than that, this looks good to me. :-)
Attachment #144828 - Flags: review?(Stefan.Borggraefe) → review+
Attachment #144828 - Flags: superreview?(mscott)
Attachment #143608 - Flags: superreview?(mscott)
Attachment #143608 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #144828 - Flags: superreview?(mscott) → superreview+
Neil, your patch is completely reviewed; how about a checkin?
I use tabbed browser as a sort of task list which is all very well until Mozilla crashes on me (no I haven't installed recall.mozdev.org, perhaps I should) so I'm guessing that something along those lines caused me to overlook this :-/ and now the tree's frozen for 1.8a I'll probably forget again when it opens :-(
Target Milestone: --- → mozilla1.8beta
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago21 years ago
Resolution: --- → FIXED
Verifying this has been fixed; I see it working fine in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a2) Gecko/20040522 Thanks, Neil!
Status: RESOLVED → VERIFIED
Whiteboard: fixed-aviary1.0
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: