Bug 306856 - No reference to mail in the filter log
Summary: No reference to mail in the filter log
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: 4.9.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-15 18:40 UTC by Thomas Arend
Modified: 2012-09-28 07:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.10


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Arend 2012-09-15 18:40:55 UTC
Below you see an example of a filter log entry. There is no reference to the filtered massage (Subject, From, To, Messageid). If you received many mails and some are filtered and some are not / filtered wrong you have no hint which entry in the log belongs to the which message.

[20:29:33] Evaluating filter rules: (match all of the following) "X-Spam-Flag" <contains> "YES"
[20:29:33] 0 = "X-Spam-Flag" <contains> "YES" ()
[20:29:33] Evaluating filter rules: (match all of the following) "X-Cron-Env" <contains> "<SHELL"
[20:29:33] 1 = "X-Cron-Env" <contains> "<SHELL" (<SHELL=/bin/sh>)
[20:29:33] Filter rules have matched.
[20:29:33] Applying filter action: Move Into Folder "Lokale Ordner/Cron"

Reproducible: Always

Steps to Reproduce:
Filter mail.
Actual Results:  
No reference to the mail in the filter log.

Expected Results:  
Reference in the filter log. Maybe the message id is the best reference to keep the log small. 

Message time, from, to, cc,subject ... would a good idea.
Comment 1 Laurent Montel 2012-09-18 09:11:26 UTC
I confirm it.
Will look at how to implement it.
Comment 2 Laurent Montel 2012-09-28 07:21:15 UTC
Git commit c3ab534d099f4b5da439d5c559df661e36e0e049 by Montel Laurent.
Committed on 28/09/2012 at 09:19.
Pushed by mlaurent into branch 'master'.

Fix Bug 306856 - No reference to mail in the filter log

FIXED-IN: 4.10

I just added when we start to log a message which display
"subject"/"date"/"from"
For me it will enough

M  +8    -1    mailfilteragent/filtermanager.cpp

http://commits.kde.org/kdepim/c3ab534d099f4b5da439d5c559df661e36e0e049