Closed Bug 1779959 Opened 3 years ago Closed 3 years ago

Possibility to hide/disable "Recent" and "Favorites" folders from Context Menu

Categories

(Thunderbird :: Folder and Message Lists, enhancement)

Thunderbird 102
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: randomuser123x, Unassigned)

Details

Steps to reproduce:

  1. Right-click on a message
  2. Select Move To/Copy To

Actual results:

The first two folders are "Recent" and "Favorites".
Sometimes selecting "Recent" folder causes a small "hiccup"/slowdown (probably due to collecting/listing the most recently used folders).

Expected results:

If both "Recent" and "Favorites" folder were hidden I would see my account-name folder as the first one.

I wouldn't add it as a feature, but you can do it already with a userChrome.css file.
Something like

#mailContext-fileHereMenu menu.folderMenuItem[special="favorites"] { display: none; }
#mailContext-fileHereMenu menu.folderMenuItem[special="recent"] { display: none; }
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX

It does work for Move To, but when I select Copy To, the "Recent" and "Favorites" folders are still shown. Any idea how to hide them too?

For copy, use #mailContext-copyHereMenu instead of #mailContext-fileHereMenu in the above rules

Excellent, it works flawlessly. Thank you! The only thing that is left there is a horizontal line that divides "Recent" and "Favorites" from the e-mail accounts. Is it somehow possible to hide that line too?

Probably #mailContext-fileHereMenu menuseparator {display: none;}

It's working! Thank you so much! :-)

I've just discovered that the "Recent" and "Favorites" folders are still visible if I open a message, and instead of right-clicking on it, I select "Message" tab in the top-left menu bar and go to Move To/Copy To. Any idea how to hide the folders there? I'm sorry for disturbing you and asking you so many question in regard of this just one issue.

I think you can use #moveMenu and #copyMenu instead of #mailContext-fileHereMenu and #mailContext-copyHereMenu (you can find id's using the developer tool to inspect the dom)
https://searchfox.org/comm-central/rev/70f9a971db10339da36acca1413ce7a9786ac5f0/mail/base/content/messenger-menubar.inc.xhtml#967

You need to log in before you can comment on or make changes to this bug.