Bug 291635

Summary: Relative trash folder for antispam filter
Product: [Applications] kmail2 Reporter: karaluh <karaluh>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist CC: amantia
Priority: NOR    
Version: 4.9.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description karaluh 2012-01-16 08:49:37 UTC
Version:           4.7
OS:                Linux

Currently you have to pick one specific folder for all spams. However, when you have for example three IMAP accounts it would be more sensible to put spam mails from each account to that account's trash folder.

Reproducible: Always



Expected Results:  
.

OS: Linux (i686) release 3.0.0-15-generic
Compiler: gcc
Comment 1 András Manţia 2012-10-13 22:46:40 UTC
You can go to Settings->Configure Filter and create a spam pipe-through filter (e.g Bogofilter check) that works only on certain accounts, and add a new action "Add Header" with name like "Filtered account" some custom text ("Account #1") after the "Pipe Through" action. 
Then you create (or modify) the Spam Handling filter so it acts based on the "Filtered Account" header being "Account #1".
You do the same for other accounts where you want spam delivering for different folders.

If you want all this in an automated way, it is another question, and that is related to the spam wizard. Reopen the wish in that case.
Comment 2 karaluh 2012-10-15 07:02:37 UTC
(In reply to comment #1)
> If you want all this in an automated way, it is another question, and that
> is related to the spam wizard. Reopen the wish in that case.

That is exactly what I would expect. Reopening.