[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    [Kde-pim] Re: IMAP filtering doesn't work?
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2011-05-25 6:25:32
Message-ID: iri7cs$384$1 () dough ! gmane ! org
[Download RAW message or body]

Andre Heinecke wrote:
> My solution would be to make it a public function "tryToFilterInbox" and
> call it from the kmkernel. Do you have a better idea?
> 

Try something like this:

diff --git a/mailcommon/filtermanager.cpp b/mailcommon/filtermanager.cpp
index e874ec9..0b47109 100644
--- a/mailcommon/filtermanager.cpp
+++ b/mailcommon/filtermanager.cpp
@@ -304,7 +304,7 @@ FilterManager::FilterManager( QObject *parent )
   connect( d->mChangeRecorder, SIGNAL( itemAdded( const Akonadi::Item&, 
const Akonadi::Collection& ) ),
            SLOT( itemAdded( const Akonadi::Item&, const 
Akonadi::Collection& ) ) );
 
-  d->tryToFilterInboxOnStartup();
+  connect( this, SIGNAL(filterListUpdated()), 
SLOT(tryToFilterInboxOnStartup()) );
 }
 
 FilterManager::~FilterManager()




_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic