After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 499319 - Add "Empty Junk" to Junk folder context menu
Add "Empty Junk" to Junk folder context menu
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.4.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 263453 538746 753068 776053 (view as bug list)
Depends on:
Blocks: 310550
 
 
Reported: 2007-11-24 10:01 UTC by Eckhard M. Jäger
Modified: 2017-06-15 15:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Thunderbird "Empty Junk" (78.18 KB, image/png)
2016-12-21 18:16 UTC, David Dreggors
Details

Description Eckhard M. Jäger 2007-11-24 10:01:19 UTC
It would be cool have the possibilty to empty the spam folder like you can empty the trash folder. For me it make no sense to delete all messages of the spam folder and after that then empty the same messages in trash folder. 
It would be cool kill that spam with a single click. Like in the Trash folder you can always review your messages when you like to delete them.
This is one feature that was good on Thunderbird (...but Evolution is much, much better :) ).

Thanx for doing Evolution!
Comment 1 André Klapper 2007-11-26 16:28:09 UTC
just expunge it, it's already implemented. :)
emptying the trash folder is exactly the same as expunging the physical folders.
Comment 2 Eckhard M. Jäger 2007-11-26 16:48:03 UTC
Hello Andre,

thanks for the reply. My point is that deleting a message from the spam folder moving that message to the trash folder and then there is can be deleted.
But why? 
Why isn't it possible deleting spam messages directly from the spam folder without moving into trash manually. It would be cool have a command at the right click menu of the spam folder "Empty Spam".
Same like on the Trash folder. 
Comment 3 André Klapper 2007-11-26 17:44:41 UTC
(In reply to comment #2)
> thanks for the reply. My point is that deleting a message from the spam folder
> moving that message to the trash folder and then there is can be deleted.
> But why? 

you do not delete the message in the spam folder. the spam folder and the trash folder are virtual folders. messages remain in their physical folders and getr *marked* as spam or as deleted.

> Why isn't it possible deleting spam messages directly from the spam folder
> without moving into trash manually.

as i already said, expunge the folder. but of course you're point to have a menu item is valid.
Comment 4 Akhil Laddha 2009-10-28 07:28:29 UTC
*** Bug 263453 has been marked as a duplicate of this bug. ***
Comment 5 Akhil Laddha 2010-10-22 06:25:55 UTC
*** Bug 538746 has been marked as a duplicate of this bug. ***
Comment 6 Milan Crha 2015-06-22 10:50:27 UTC
Expunge is currently (3.16.3) disabled by default in the virtual folders. That's because it would do expunge in all included folders, which means it can expunge deleted messages which are not junk. There is currently no way to expunge only selected messages, due to IMAP protocol limitations. It can be worked around, by unsetting \Deleted flag on the messages which are not going to be deleted and the set it back, but even that can sometimes badly fail (like when the restore of the \Deleted flags fails for whatever reason).
Comment 7 Milan Crha 2015-07-31 07:27:20 UTC
*** Bug 753068 has been marked as a duplicate of this bug. ***
Comment 8 David Dreggors 2016-12-13 18:21:33 UTC
In Thunderbird one can right click on the junk/spam folder and "Empty folder" which removes all junk. Behind the scenes it marks for deletion I am sure. The point is I would like to do the same in evolution.

Is there a right click menu item for the junk folder to empty (delete) all items in the Junk folder?
Comment 9 André Klapper 2016-12-14 09:12:58 UTC
No.

(Not sure why you ask here though - if you want to find out about features of a software, please use the mailing list or IRC, instead of the issue tracker.)
Comment 10 David Dreggors 2016-12-14 18:57:42 UTC
(In reply to André Klapper from comment #9)
> No.
> 
> (Not sure why you ask here though - if you want to find out about features
> of a software, please use the mailing list or IRC, instead of the issue
> tracker.)

Because this is:

A) An existing ticket asking for the same thing (see bug description)
B) The Gnome project page says to ask in bugzilla for new features
C) It is logical to search for existing requests and comment
Comment 11 David Dreggors 2016-12-14 19:00:11 UTC
(In reply to David Dreggors from comment #10)
> (In reply to André Klapper from comment #9)
> > No.
> > 
> > (Not sure why you ask here though - if you want to find out about features
> > of a software, please use the mailing list or IRC, instead of the issue
> > tracker.)
> 
> Because this is:
> 
> A) An existing ticket asking for the same thing (see bug description)
> B) The Gnome project page says to ask in bugzilla for new features
> C) It is logical to search for existing requests and comment

Also see:
http://gnome-evolution-general.1774414.n4.nabble.com/Evolution-feature-request-and-bug-listing-td1785982.html
Comment 12 André Klapper 2016-12-14 19:41:15 UTC
(In reply to David Dreggors from comment #10)
> A) An existing ticket asking for the same thing (see bug description)

And that is exactly what this ticket is about, and this ticket is not resolved but "new" and open and hence this functionality does not exist. :)
Comment 13 David Dreggors 2016-12-14 19:48:41 UTC
(In reply to André Klapper from comment #9)

ok maybe I am misunderstanding your comment then:

> (Not sure why you ask here though - if you want to find out about features
> of a software, please use the mailing list or IRC, instead of the issue
> tracker.)

Because what I was saying in my answer to this question, was that the reason I I ask here was that this is the place we are told to ask. This *IS* the place I should ask.

If you would like to know why I say this is the place to ask... see my answer above. The Gnome project page tells people to ask here.
Comment 14 Milan Crha 2016-12-15 08:21:27 UTC
David, that's okay, you did it right. The bugzilla is preferred, because it's easier to maintain the issue state here, than a state of a mailing list message. That your comment sounds like a user question makes it little harder, because the bugzilla is for reporting issues and requesting features, not just to ask. Still no big deal, really.

The reason why this is particularly hard to do is described in comment #6.
Comment 15 Milan Crha 2016-12-15 08:25:07 UTC
Oops, I forgot to add: What you are looking for is bug #709187, as a workaround. It's off by default, because it has side effects.

   $ gsettings set org.gnome.evolution.mail vfolder-allow-expunge true

Then you can Ctrl+A, Del, Ctrl+E in the Junk folder too, but as I said, it'll expunge all deleted messages, not only those in the Junk folder.
Comment 16 Milan Crha 2016-12-15 10:21:51 UTC
*** Bug 776053 has been marked as a duplicate of this bug. ***
Comment 17 David Dreggors 2016-12-21 18:05:15 UTC
(In reply to Milan Crha from comment #15)
> Oops, I forgot to add: What you are looking for is bug #709187, as a
> workaround. It's off by default, because it has side effects.
> 
>    $ gsettings set org.gnome.evolution.mail vfolder-allow-expunge true
> 
> Then you can Ctrl+A, Del, Ctrl+E in the Junk folder too, but as I said,
> it'll expunge all deleted messages, not only those in the Junk folder.

I think the point is missed here, we are not looking to expunge we are looking to mark as deleted which should *appear* as if they were moved into deleted folder. The requested behavior is exactly as if we had clicked on a message in SPAM folder and then Ctrl+A, Del, to delete all. The thing is we do NOT want three steps we want one menu option to do all of this.

Current steps:
1. Select any message in Junk folder
2. Type Ctrl+A
3. Type Del

Requested:
1. Right click on Junk folder
2. Select "Delete All Junk" (or similar)

To see what we mean, install Thunderbird somewhere and right click on Junk/Spam folder.
Comment 18 David Dreggors 2016-12-21 18:16:27 UTC
Created attachment 342347 [details]
Thunderbird "Empty Junk"

Added attachment for reference
Comment 19 Milan Crha 2016-12-22 10:01:29 UTC
Being it only about deleting the messages, not expunging them from the folder, it would be fairly easy. Thunderbird does it differently, they have the Junk folder a real folder and if you select 'Empty Junk', then it doesn't move the messages to the Trash folder, it also deletes them from the server permanently. I just tried that with thunderbird-45.5.1.
Comment 20 David Dreggors 2017-05-25 00:06:34 UTC
Sorry for the late reply, but yes I believe that is correct. Which ever is easiest to implement now (mark as deleted or actually delete off server).

The concept is still mostly covered by marking as deleted since it *appears* empty the spam folder and one can then set Evolution to expunge in close.
Comment 21 Milan Crha 2017-06-15 15:00:23 UTC
Okay, thus it's "Empty Junk" in a Junk folder context menu, which deletes messages (which can eventually move them into the real Trash folder), then the Trash folder should be expunged to make it permanent.

Created commit f2ac494 in evo master (3.25.3+)