[Kde-pim] Re: IMAP filtering doesn't work?

Stephen Kelly steveire at gmail.com
Wed May 25 20:06:24 BST 2011


Andre Heinecke wrote:

> Hi,
> Am Wednesday, 25. May 2011, 08:25:32 schrieb Stephen Kelly:
>> 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()
> I've tested it and it worked so i've commited it:
> 
http://quickgit.kde.org/?p=kdepim.git&a=commit&h=77349b1a20cb4e3d2689bcb3148a3c3e36e43492
> 
> I also reduced the timeout for checking for a valid inbox to 1 second
> because it was always invalid the first time around for me so it took 10
> seconds in which i could see the mail before they were filtered. Now with
> 1 second you have shortly the unread count in the inbox before it gets
> filtered but i think this is ok and even tells you that something new has
> arrived.
> 

Awesome!

At some point this stuff should be handled in an Akonadi::Agent, but that 
can happen at some later time.

Thanks,

Steve.


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list