RFC: Split mail folder view into one view per account using tabs
AbandonedPublic

Authored by dvratil on Feb 25 2017, 6:56 PM.

Details

Summary

This is an experiment that I hacked together to see how it would work and feel to have folders separated to per-account tabs. The code still needs work, but I'd like to know your opinions on this first before I sink more time into the feature.

The idea is that instead of having a single tree of all folders, you have per-account tabs on the side and each tab only shows folders from given account.

I think this could make the folder view a bit easier to use if you have lots and lots of folders and multiple accounts (like we all do :-)). The patch is written in a way that the feature can very easily be turned off, because this separation does not make much sense if you only have Local Folders plus maybe one IMAP account or if all your folders fit onto your screen.

I have some more ideas that are not implemented yet, I would like to know your opinions on them too

  • better indication of unread email count (blue bold number next to the account name instead of the current plain text)
  • per-account colors - each account would have its own color and the tab and the view background would have the same color and the color would be used everywhere else in KMail when there's a Folder selection combobox or something like that to make it easy to quickly identify which account the folder belongs to. This is inspired by recent KDevelop feature where each project has a different color and then each file tab has the color based on which project the file belongs to to make it easier to navigate between files:
  • Right-clicking the tab would show a context menu with following actions:
    • Synchronize all folders
    • Account configuration (opens respective resource configuration dialog)
    • Remove account (??)
    • Customize (set custom icon, color etc.)
  • Drag&drop to reorder the accounts (replacing Settings -> Configure KMail -> Accounts -> Customize account order)
  • possibility to set a shortcut for each tab to quickly toggle between them
  • your idea comes here :-)

If you want to test the patch, you also need to apply the following patch to kmail.git to enable the feature:

diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp
index c9b06d1..f4446f6 100644
--- a/src/kmmainwidget.cpp
+++ b/src/kmmainwidget.cpp
@@ -987,4 +987,5 @@ void KMMainWidget::createWidgets()
     opt |= FolderTreeWidget::UseLineEditForFiltering;
     opt |= FolderTreeWidget::ShowCollectionStatisticAnimation;
     opt |= FolderTreeWidget::DontKeyFilter;
+    opt |= FolderTreeWidget::UseAccountTabs;
     mFolderTreeWidget = new FolderTreeWidget(this, mGUIClient, opt);

Diff Detail

Repository
R92 PIM: Common Mail Support
Lint
Lint Skipped
Unit
Unit Tests Skipped
dvratil created this revision.Feb 25 2017, 6:56 PM
mlaurent edited edge metadata.Feb 26 2017, 9:53 AM

Hi,
Really I don't like it sorry.
I don't want to have a tab on left + tab on top when we select several folder.
It's for that I don't use kdevelop as there is too many tab and we don't understand where we need to click.

I thought that the focus was to simplify kmail UI not complexify it :)

I reduced number of settings, I cleaned up UI, reduced number of menu entries, but adds a tab is not in the target to simplify GUI.

Regards.

dvratil abandoned this revision.Feb 25 2020, 4:28 PM