Bug 3956 - Please allow a folder to be emptied for folders such as 'Junk'
Summary: Please allow a folder to be emptied for folders such as 'Junk'
Status: NEW
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Folder List (show other bugs)
Version: 3.16.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2018-01-30 21:40 UTC by Will B
Modified: 2018-01-31 17:31 UTC (History)
1 user (show)

See Also:


Attachments
Proposed fix (4.45 KB, patch)
2018-01-31 17:31 UTC, Ricardo Mones
no flags Details | Diff

Description Will B 2018-01-30 21:40:39 UTC
When a folder is right-clicked and 'Properties' -> 'General' -> 'Folder Type' is chosen, in addition to 'Normal', 'Trash', 'Queue', etc, I think there needs to be a folder type of 'Junk'.  

I'm asking for this so that it can be emptied like the Trash folder, instead of having to Select All and Deleting.

If a 'Junk' folder type is too specific, maybe you could add a check-box to the general folder properties called 'Can be emptied' or something similar.

Thank you! :-)
Comment 1 Paul 2018-01-31 00:02:11 UTC
You can make your Junk folder a sub-folder of the Trash folder and then it is also a Trash folder and can be emptied via the right-click menu item.
Comment 2 Will B 2018-01-31 01:30:42 UTC
(In reply to comment #1)
> You can make your Junk folder a sub-folder of the Trash folder and then it
> is also a Trash folder and can be emptied via the right-click menu item.

Thank you Paul, this is helpful.

I would still like to keep this open until it's implemented or denied.
Comment 3 Ricardo Mones 2018-01-31 16:33:27 UTC
(In reply to comment #1)
> You can make your Junk folder a sub-folder of the Trash folder and then it
> is also a Trash folder and can be emptied via the right-click menu item.

Unfortunately this doesn't work for server-side top-level Junk folders which you can't move.
Comment 4 Ricardo Mones 2018-01-31 16:45:39 UTC
(In reply to comment #0)
> When a folder is right-clicked and 'Properties' -> 'General' -> 'Folder
> Type' is chosen, in addition to 'Normal', 'Trash', 'Queue', etc, I think
> there needs to be a folder type of 'Junk'.  
> 
> I'm asking for this so that it can be emptied like the Trash folder, instead
> of having to Select All and Deleting.
> 
> If a 'Junk' folder type is too specific, maybe you could add a check-box to
> the general folder properties called 'Can be emptied' or something similar.

Having to configure folders for this simple operation is a bit overkill IMO. Furthermore, if not configured that way, should the "Select All" + "Delete" combination still empty the folder or not? :-)

Reusing the "Empty trash..." context menu item and naming it "Empty folder..." when it's not a Trash folder is more straighforward and probably easier to implement.
Comment 5 Ricardo Mones 2018-01-31 17:31:47 UTC
Created attachment 1841 [details]
Proposed fix

This is a quick implementation of the "Empty folder..." menu item. It surely can be improved because of the similarity with the empty trash function, but seems to do the job.

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