Bug 257984 - kmail automatic filtering doesn't work
Summary: kmail automatic filtering doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: 2.0.89
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 16:12 UTC by Sascha Manns
Modified: 2011-05-25 20:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Manns 2010-11-26 16:12:14 UTC
Version:           SVN trunk (KDE 4) (using KDE 4.5.80) 
OS:                Linux

V: 2.0.89

Old Task: All new Messages from /var/mail/ goes automatic to the filter. He puts all Mails in the right folder. Unmatched Mails going to KMail Folders/Inbox.
New Task: All new messages from /var/mail goes to the new (since update) created Local Mailbox. For filtering Messages it's needed to make a manual filtering. 

Reproducible: Always

Steps to Reproduce:
Just start Kontact/Kmail.

Actual Results:  
All Files just placed in Local Mailbox.

Expected Results:  
After coming up new Messages i'm expecting an automatic filtering. And the placement of the unmatched files into KMail Folders/Inbox (my old value)
Comment 1 Felix Lemke 2010-11-27 01:51:53 UTC
I have the same problem.

Automatic filtering doesn't work.
But the filtering works if I mark a mail and say "Apply all filters" (CTRL+J).
Comment 2 Laurent Montel 2010-11-27 15:06:49 UTC
kmail 2 !!!
Please use good component
Comment 3 Christian Trippe 2010-11-27 20:10:52 UTC
I updated to KDE 4.6 beta1 and the migration tool only migrated 4 of ~20 filters I had in kmail 1.
Comment 4 Anne-Marie Mahfouf 2010-12-05 19:45:04 UTC
Confirmed, KMail2 does not import filters correctly from previous KMail.
Comment 5 Tobias Koenig 2010-12-11 21:31:54 UTC
Hej Sascha,

How do the mails from /var/mail come to your Local Folders/inbox? By an external application?

Ciao,
Tobias
Comment 6 Sascha Manns 2010-12-12 02:28:39 UTC
Hi Tobias, 
as i started this Bugreport i had fetchmail who collects all Mails and put this after amavis into my /var/mail.
Then i've started to add my Emailaccounts into KMail directly. Then it works. All filter doing their job. So i think we can close the Report.
Comment 7 Andre Heinecke 2011-05-25 20:11:11 UTC
Git commit 77349b1a20cb4e3d2689bcb3148a3c3e36e43492 by Andre Heinecke.
Committed on 25/05/2011 at 19:53.
Pushed by aheinecke into branch '4.6'.

Fix message filtering on startup.

    When the FilterManager was constructed it tried to filter the
    unread messages in the inbox before it had loaded the filtersettings.
    This caused it only to filter new messages while it was running.

    With this patch the tryToFilterInboxOnStartup function will always
    be called when new filters are added. (e.g. After the config is read)
    The delay in which the filter checks if the inbox is valid has also
    been reduced to avoid situations where the user can look at a mail
    in the inbox which is about to be filtered.

    This patch was provided by steveire

    BUG: 255388
    CCBUG: 257984

M  +2    -2    mailcommon/filtermanager.cpp     

http://commits.kde.org/kdepim/77349b1a20cb4e3d2689bcb3148a3c3e36e43492