Bug 3956

Summary: Please allow a folder to be emptied for folders such as 'Junk'
Product: Claws Mail (GTK 2) Reporter: Will B <will.brokenbourgh2877>
Component: UI/Folder ListAssignee: users
Status: NEW ---    
Severity: enhancement CC: will.brokenbourgh2877
Priority: P3    
Version: 3.16.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Proposed fix none

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.