Closed Bug 351692 Opened 18 years ago Closed 17 years ago

Need to see Account Names in the Move To / Copy To Recent Folder menus

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Thunderbird 3

People

(Reporter: mscott, Assigned: whimboo)

References

Details

(Keywords: verified1.8.1.8)

Attachments

(3 files)

If you have multiple folders with the same name, you don't know which folder you are copying or moving into when you use the recent folder drop down.
In order to fix this, I think we should think about how we implemented:

nsMsgFlatFolderDataSource::GetFolderDisplayName

it currently only appends the account name if in the current folder view (recent, etc) you have two folders with the same name. But in the case or views like recent and unread if you have multiple folders even if they both aren't in the view, you don't know which one is which.

Maybe GetFolderDisplayName should append the account name if there's a folder in all folders with the same name and not just a folder in the current view.
Status: NEW → ASSIGNED
Summary: Need to see Account Names in the Move / Copy Recent Folder menus → Need to see Account Names in the Move To / Copy To Recent Folder menus
This is a big problem if you use separate accounts. You can then have as many In, Out, Sent, Trash folders as accounts! (sorry, I have a French version so I don't know the exact names of the boxes) Currently, I have 5 In, 2 Out, 5 Trash in my recent! So my recent menu is almost useless.
OS: Windows XP → All
Hardware: PC → All
Why not just use the account name + IMAP folder name (in the case of IMAP) as this is already available and perfectly descriptive.
As the duplicate folder names are most likely Inbox etc., adding the "path" might be sufficient, e.g.

Inbox (Account1)
Inbox (Account2)
SomeFolder (Account1/SubFolder)
SomeFolder (Account2/AnotherSubFolder)
David seems to have code which could solve this (see bug 378605 comment 8).
I think David's code is for the folder pane and it still works. This bug is about the recent folder menu items for moving & copying. 
this makes the menu items use the folder tree display name, which has the account for folders which are duplicates. It also includes the unread count for each folder in the recent menu, which is a little odd (assuming you aren't displaying the separate unread column in the folder pane).

An alternative would be to make an other attribute of the folder resources for the recent datasource, that showed the account name. I'm ambivalent. I think this patch is an improvement as is...
Attachment #265405 - Flags: superreview?(mscott)
Comment on attachment 265405 [details] [diff] [review]
[checked in]possible fix

I think the reason I didn't fix it this way before was because folderTreeName only appends the account name if there are two folders in the recent folders list that have the same name.

So this won't fix the case where you are trying to move a message to say a folder called Inbox and you open up the menu to find a single folder called Inbox in the menu but not know which account that was tied too....

It was either that or that this change shows the account for all folders, all the time in the recent folder move menu. I can't remember which :)

In any case your right, it is an improvement.
Attachment #265405 - Flags: superreview?(mscott) → superreview+
Comment on attachment 265405 [details] [diff] [review]
[checked in]possible fix

I've checked this change in, but I'll leave the bug open since I think there's room for improvement.
Attachment #265405 - Attachment description: possible fix → [checked in]possible fix
With 3a1-0527, I notice that the folder name in the menu includes the unread count in parentheses.
Mike, yes, I mentioned that comment #8 - to fix that, we'd need to use yet an other rdf property.
David, to avoid the display of the unread count we could use ?folderTreeSimpleName. Then we have an output like "Inbox - Local Folders". But do we want to have '-' as separator or are brackets better: "Inbox [Local Folder]"? For the first proposal I could come up with a patch on yours one. :)
Henrik, yes, it looks like that would work - a patch would be appreciated. Re [] vs - : if people think [] is better, we could change it for both. I believe I picked '-' because it was simple.
David, I have another idea but don't know if it is possible. Are we able to change the font color for parts of a menu item? I think it would be nice if the account name is greyed out. So you can concentrate at the real folder name while also having a low contrast account name.

For the separator part we could also use () like it is implemented for the unread message count. Otherwise we will have to many different separators. Scott, what is your suggestion?
Attachment #267596 - Flags: review?(bienvenu)
Comment on attachment 267596 [details] [diff] [review]
[checked in]Account names without numbers

thx, Henrik
Attachment #267596 - Flags: review?(bienvenu) → review+
Whiteboard: [checkin needed]
Can we try to get this into the next release of Thunderbird 2?
Flags: blocking1.8.1.5?
Target Milestone: Thunderbird2.0 → ---
Version: 2.0 → Trunk
this is not a security bug blocker so i'm going to minus this.
Flags: blocking1.8.1.5? → blocking1.8.1.5-
Comment on attachment 267596 [details] [diff] [review]
[checked in]Account names without numbers

mail/base/content/mailWindowOverlay.xul 1.209
Attachment #267596 - Attachment description: Account names without numbers → [checked in]Account names without numbers
Whiteboard: [checkin needed]
Scott, are you happy with the current state? Or should we leave this bug open for further improvements?

For myself it looks good and I have to revert my comment 15 in using separators like [] or (). The '-' is more inconspicuous and doesn't disturb too much. It would be better if the account names could be displayed in lower contrast but as David stated on IRC this is probably not possible.
David, Scott, any chance to see this fix implemented in 2.0.0.x? As other commenters said already, this bug is really annoying when having several accounts. This is really a UE issue. If you don't plan to backport it, maybe setting the TM to Tb3 would make this clear.
Comment on attachment 267596 [details] [diff] [review]
[checked in]Account names without numbers

probably pretty trivial to put into a 2.0.0.x release
Attachment #267596 - Flags: approval1.8.1.7?
(In reply to comment #23)
> (From update of attachment 267596 [details] [diff] [review])
> probably pretty trivial to put into a 2.0.0.x release

David, my patch is a follow-up of your one. Should I provide a new one for 1.8 branch instead which will apply correctly? 

Henrik, that would be helpful, and save me some time, yes.
Update for attachment 267596 [details] [diff] [review] against 1.8 branch.
Assignee: mscott → hskupin
Attachment #274823 - Flags: review?
Attachment #274823 - Flags: approval1.8.1.7?
Attachment #274823 - Flags: review? → review?(bienvenu)
Attachment #267596 - Flags: approval1.8.1.7?
Comment on attachment 274823 [details] [diff] [review]
[checked in]Patch against 1.8 branch

thx!
Attachment #274823 - Flags: review?(bienvenu) → review+
Comment on attachment 274823 [details] [diff] [review]
[checked in]Patch against 1.8 branch

assuming David is ok with this going into the branch...a=mscott
Attachment #274823 - Flags: approval1.8.1.7? → approval1.8.1.7+
Whiteboard: [checkin needed (1.8 branch)]
David, I mark this bug as resolved. I don't think that we have more improvements on this for now? Otherwise lets file another bug.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3
Comment on attachment 274823 [details] [diff] [review]
[checked in]Patch against 1.8 branch

Landed on MOZILLA_1_8_BRANCH.
Attachment #274823 - Attachment description: Patch against 1.8 branch → [checked in]Patch against 1.8 branch
Whiteboard: [checkin needed (1.8 branch)]
Verified with Thunderbird version 2.0.0.7pre (20070913).
Status: RESOLVED → VERIFIED
If I read this correctly, this patch has been incorporated into the source,
and if I build 2.0.0.12 now, this change should be there.  Is that right?

If so, then I would like to suggest that this change didn't go far enough.
I now have one "Sent" folder when I do Move To -> Recent.  I have multiple
email accounts, each with a "Sent" folder.  Which "Sent" folder is that in
the Recent list?

It's actually quite commonh for me to have regular folders with the same
name, just different parent folderss.  Why not show the whole "path"
for each Recent folder, as in comment #4?

But perhaps bug 378605 is the place for further discussion?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: