I have a *lot* of folders. Seriously. As I use Claws-Mail during the normal course of a day, the tree often expands as I move around between folders. Currently there is no way to collapse the folder tree (true collapse, where all sub-nodes are also collapsed). A command added to the folder context menu to collapse the folders below the selected folder will be very useful.
When I say "Currently there is no way to collapse the folder tree (true collapse, where all sub-nodes are also collapsed)" I really mean there's no easy way to do it other than scrolling up the folder tree pressing "-" key on all nodes, or doing it click-by-click on each node. "Node" is a folder with sub-folder so that it displays the arrow (or box) which points right for collapsed node, and downward when showing sub-folders.
Created attachment 1495 [details] Proposed patch for adding expansion and collapsing for IMAP folders I too wanted this functionality, and the search for it only led me here, so I made an attempt at implementing it myself. I have attached the patch. I added "Collapse subfolders" and "Expand subfolders" at the top of the context menu on the assumption (at least for me) that these are very commonly used items, but maybe we are few that thinks so and the placement should be changed. Mnemonics set to E and X for Collapse and Expand respectively, as they were available, at least for the context menus I tried. A bit counter intuitive with E not for Expand, but both E and X are to the left on the keyboard on both QWERTY and Dvorak which should make them nicer to use. Given then tree A/ ..B/ ....C/ D/ ..E/ When C is opened (showing the contents of the folder), and the context menu is invoked on A, collapsing will open A. When E is opened, collapsing A will keep E as opened/selected. Expanding never switches opened folder.
Created attachment 1496 [details] Proposed patch for adding expansion and collapsing for IMAP folders Saw that -p0 was preferred.