Bug 94477 - Allow filtering of mails depending on their folder
Summary: Allow filtering of mails depending on their folder
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 161798 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-05 19:37 UTC by Holger Schröder
Modified: 2012-08-19 00:46 UTC (History)
4 users (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 Holger Schröder 2004-12-05 19:37:23 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages

Hi,

i miss the possibility to tell the kmail filters to act only on one of my mail accounts instead of working on all of them.

my setup is the following:

account A: normal productive imap account on a cyrus server
account B: testing/playing account on the same server, which 
   gets a copy of every mail to A, cached imap
account C: account on a kolab2 test server. cached imap, gets
   a copy of every mail which is sent to B, so it receives also a copy
   of every message to A.

so i set up filtering of mails on account C, for example move all 
messages to folder kde-devel on account C. it worked fine so far,
but somewhen kmail crashed and messed up account C and the
filter rules (will write a bug report about that in a minute...).

after that i checked account B for the first time after setting up the
filtering rules. all downloaded mails from B got sorted into different
folders on C. this was not what i wanted. they should be left untouched.

so how to "fix" this behaviour ?

perhaps it would be good to have a list of accounts in the "Advanced 
Options" area in the "Configure Filters" dialog. then you could check/uncheck
the different accounts for the different filtering rules. it would mean
something like this: if this account is "checked", then when you apply
filtering on this accout, this rule is executed. if it is not checked, then
this rule is ignored.

if this would be possible, i could tell all my filtering rules for account C
to be only "active" on account C, and filtering of mails on account B would
not sort them into the subfolders of account C.

while being at it, it would also be good, when a filtering rule could be applied
to only special folders. to explain this a little bit more:
on C i have folders C1 and C2, and in both folders there are mails which i
consider as spam. on manual filtering i want to be able to press ctrl-j on a 
message to filter it. so the rules should be:
- when i am in folder C1 and this message is filtered manually, put it into C1-spam
- when i am in folder C2 and this message is filtered manually, put it into C2-spam

this would be possible, when i had the option to select "Folder" "equals" "C1" in the
"Filter criteria" in the "Configure filters" dialog.

perhaps somebody can comment about how much work this would be/
if this is possible with the current framework at all/ when i could hope for 
this wish to be implemented...

thanks a lot, Holger
Comment 1 Don Sanders 2004-12-22 10:31:52 UTC
On Monday 06 December 2004 04:37, Holger Schröder wrote:
...
> so how to "fix" this behaviour ?
>
> perhaps it would be good to have a list of accounts in the "Advanced
> Options" area in the "Configure Filters" dialog. then you could
> check/uncheck the different accounts for the different filtering rules. it
> would mean something like this: if this account is "checked", then when you
> apply filtering on this accout, this rule is executed. if it is not
> checked, then this rule is ignored.
>
> if this would be possible, i could tell all my filtering rules for account
> C to be only "active" on account C, and filtering of mails on account B
> would not sort them into the subfolders of account C.

By sheer coincidence I'm actually working on something like this currently.

> while being at it, it would also be good, when a filtering rule could be
> applied to only special folders.

Maybe something to consider in the future, but I'm not working on that 
currently.

Don.

Comment 2 Teemu Rytilahti 2006-06-13 11:07:12 UTC
Anything new on this? I have a lot of filters and I have an account which e-mails I wouldn't like to get filtered at all. Currently I'd need to traverse a lot of filters to achieve this, and it would break up things if I'd get a new account.
Comment 3 Clarence Dang 2006-12-17 04:43:17 UTC
I'd love to see this feature as well.
Comment 4 Clarence Dang 2007-10-18 12:48:07 UTC
It looks like the account part of the feature has already been implemented in KDE 3.5 -- see "Apply this filter to incoming messages: ... from checked accounts only" in the "Advanced" tab.

The folder part of the feature hasn't been implemented as far as I can see.
Comment 5 Björn Ruberg 2009-12-20 16:19:02 UTC
The coniguration for accounts should be extended by their subfolders.
Comment 6 Björn Ruberg 2010-01-18 01:21:06 UTC
*** Bug 161798 has been marked as a duplicate of this bug. ***
Comment 7 Myriam Schweingruber 2012-08-18 08:28:59 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 8 Luigi Toscano 2012-08-19 00:46:41 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.