Bug 117717 - Feature: allow a folder to automatically mark everything in it as "Read"
Summary: Feature: allow a folder to automatically mark everything in it as "Read"
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
Keywords: junior-jobs
: 136821 (view as bug list)
Depends on:
Reported: 2005-12-05 13:41 UTC by Oded Arbel
Modified: 2013-03-23 02:02 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2005-12-05 13:41:21 UTC
Version:           1.9 (using KDE 3.5.0, Mandriva Linux Cooker i586 - Cooker)
Compiler:          Target: i586-mandriva-linux-gnu
OS:                Linux (i686) release 2.6.12-12mdksmp

I have kmail set up to mark messages as read after 3 seconds. This works very well, but sometimes I move the message immediately upon opening the message - often withing 1 second or 2 - usually to the trash (if its spam or something I was expecting or simply I know immediately that its not interesting).

The problem is that then the mail is never marked as read, which is a problem if I moved it to the trash, as the trash folder gets filled with messages which are marked as unread and this shows in the "total unread message count" for the account, or sub-tree (which I often keep collapsed to save space for more important things in my folder laden mail accounts display). 

I have the trash folders marked as "don't act on new mail in this folder", but for some reason that doesn't do what I'd expect it to do - that is, don't show the unread mail count on that folder in the tree display, don't add the unread mail count to the total account unread mail count (the one showing in the passive email notification pop-up) and the global unread mail count (the one showing in the system tray icon).

All these are a real nusiance, and I have to manually go to the trash folders (and I have one for every active account, which is many at this time) and "mark all messages as read" on it, every once in a while.

Another problem is that I have folders where mail gets put in by the server, which I'm not interested to read on a mail-by-mail basis - its more of a logging thing where I may go into them and read a few once in a while or search for data, but I don't want to be notified for each and every new email.

For both problems, it would be best, if certain folders can be setup (on a per folder basis) to always automatically mark messages put into them (whether manually, by filters, or new messages put in on the server sides) as read, so not only kmail will not "act on unread mail" in them (whatever that means) but will also never show that new mail is in them and also other email clients viewing the same account will not see new email in those folders.
Comment 1 Oded Arbel 2006-02-05 12:43:43 UTC
I just wanted to note, that not all the folders in kmail get counted towards the "unread messages" display (whether its the pop up dialog or the system tray): all the unread messages in special folders under the "Local Folders" account (i.e., trash, drafts, etc') except "inbox" are never counted, and I haven't found a way to configure that (looks like its part of the "magic" of the "local" account).

I think that it would be useful to be able to configure that capability, on a per folder basis, for non-local accounts. This would be a good solution for this issue.
Comment 2 Ferdinand Gassauer 2006-05-03 13:39:18 UTC
Same/similar needs here.

I mark messages "as read" manualy and would like to have them marked as read when they are moved to trash.
Comment 3 Holger 2008-11-30 11:58:58 UTC
Bug 76045 seems to be a duplicate of this one.

But for some reason it's closed as "works_for_me" because that guy found some checkbox "Ignore new mail in this folder". I wonder why this feature has been removed / hidden on the way from 1.6.1 to 1.9.x ???

Bug 92646#c1 also hints at this mysterious checkbox.

Moreover Bug 145809 could be solved by this feature as well.

It would be really great if you could kindly consider this feature!

Comment 4 Oded Arbel 2008-11-30 14:54:28 UTC
Having an "ignore new mail in this folder" checkbox, AND having that configuration apply the behavior specified in this bug's description (*) will indeed close this ticket and most of the other tickets mentioned above. 

Having this behavior automatically applied to trash folders (as configured in the IMAP settings) instead of a checkbox would also be a huge improvement and would work well enough for me.

[*] i.e. not counting new mail in the specified folder towards all the different "unread mail" counts. The current/previous implementation of the "ignore new mail" functionality did not do that properly.
Comment 5 Pablo Montepagano 2009-02-06 18:24:39 UTC
It works for me. At least in KMail 1.11.0, if I uncheck the box that says "Act on new / unread messages in this folder", then the unread messages from that folder don't get counted in the total unread messages count.
Comment 6 Holger 2009-02-06 22:42:20 UTC
Maybe I was not clear enough on my problem. The trash is *not* counted against the tray-icon ... Instead I see it as bold to the left in the folder overview. Whenever I'm done reading my mail, it's the only folder left in bold, thereby attracting my attention (and I admit: annoying me :-)

Checking or unchecking "Act on new" won't prevent the trash from becoming bold. The only remedy so far is to manually mark the trash as read.
Comment 7 Björn Ruberg 2009-12-30 23:45:56 UTC
*** Bug 136821 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2012-08-18 08:10:37 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 9 Luigi Toscano 2012-08-19 00:38:12 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.
Comment 10 Murz 2012-08-19 05:57:32 UTC
This feature is missed in kmail2, but will be very useful, because after deleting unread message we see uread messages in Trash folder, this is not good.
Comment 11 Murz 2012-08-19 05:58:28 UTC
But I can't reopen the bug.
Another way for fixing this bug is marking message as read when moving to trash.
Comment 12 Holger 2012-08-19 21:27:14 UTC
My kmail claims to be version 4.7.3 in KDE 4.7.4 ... so is this now kmail 1 or kmail 2 ??? How to tell the difference, if the program doesn't know for itself?

Back to topic: Yes, this is still an issue for me!
Comment 13 Andy Goss 2013-03-23 02:02:26 UTC
This would be a great help when migrating email from a previous install. I have hundreds of saved emails, and it takes ages to mark them all as read.