Bug 285817 - some folder operations do not work when mutiple folders are selected
Summary: some folder operations do not work when mutiple folders are selected
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: Git (master)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-05 13:50 UTC by Jonathan Marten
Modified: 2017-01-07 22:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Marten 2011-11-05 13:50:00 UTC
Version:           Git (master) (using Devel) 
OS:                Linux

It is possible to select multiple folders in the tree, using Ctrl-click or Shift-click.  However, not all context menu operations are available or work properly with multiple folders selected:

Copy/Move To: sometimes crashes (will raise a separate bug for that).

Mark All Mails As Read: disabled in menu, being able to do this on multiple folders would be extremely useful.

Delete Folder: disabled in menu, but reads "Delete # Folders" so it is obviously aware that multiple folders are selected!

Archive Folder: works for the last folder selected.

Assign Shortcut: works for the last folder selected.

Folder Properties: works for the last folder selected.

Expire: only appears to work on a single folder, it doesn't say which one.

Mailing List Management: only appears to work on a single folder, it doesn't say which one.


Reproducible: Always

Steps to Reproduce:
Select multiple folders in the tree, try to perform operations from the context menu.


Actual Results:  
Anomalies as above.

Expected Results:  
Either the operations should work properly when multiple folders are selected, or if this is not possible or sensible then they should be disabled.


See also bug 195671 for "Delete", and bug 283584 for drag/drop.
Comment 1 Laurent Montel 2011-11-06 13:15:21 UTC
"Archive Folder: works for the last folder selected." I will fix item. It will work on multi folder. So I will disable it when we select multi folder.
"Assign Shortcut: works for the last folder selected." just on a folder will disable it when we have multi folder
"Folder Properties: works for the last folder selected."  same for other just on a folder will fix it
"Expire: only appears to work on a single folder, it doesn't say which one." same

For "mark as read"/delete I think that we can use multi folder will look at it.
Tomorrow will fix menu.

Thanks for bug report
Comment 2 Laurent Montel 2011-11-06 13:32:10 UTC
I don't understand I look at code (but can't test now) but menu can be enabled when multifolder
So don't understand how you can have archive/expire etc enabled when you select multi folder
Comment 3 Laurent Montel 2011-11-07 11:46:14 UTC
Git commit 8e455e44b865e40e98006bf0e58408073fdc12ad by Montel Laurent.
Committed on 07/11/2011 at 12:45.
Pushed by mlaurent into branch 'master'.

We can't select multi folder for folder properties

CCBUG: 285817

M  +2    -2    kmail/kmmainwidget.cpp

http://commits.kde.org/kdepim/8e455e44b865e40e98006bf0e58408073fdc12ad
Comment 4 Laurent Montel 2011-11-07 11:47:38 UTC
Git commit 0d9a89257e9017e8401ffdbb34fad5b5aeeaefba by Montel Laurent.
Committed on 07/11/2011 at 12:45.
Pushed by mlaurent into branch 'KDE/4.7'.

We can't select multi folder for folder properties

CCBUG: 285817
(cherry picked from commit 8e455e44b865e40e98006bf0e58408073fdc12ad)

M  +2    -2    kmail/kmmainwidget.cpp

http://commits.kde.org/kdepim/0d9a89257e9017e8401ffdbb34fad5b5aeeaefba
Comment 5 Laurent Montel 2011-11-07 12:36:06 UTC
I fixed "Mark All Mails As Read" enable/disable action (in 4.7.4/master).

Need to look at how to implement "delete multi folder" and after that all your reported bug will be fixed.
Regards
Comment 6 Denis Kurz 2016-09-24 18:13:28 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 7 Denis Kurz 2017-01-07 22:27:39 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.