[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: Andre Heinecke <aheinecke () intevation ! de>
Date: 2011-05-25 18:17:55
Message-ID: 9088641.1EhV5XhOyU () andre-pc
[Download RAW message or body]
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.
Regards,
Andre
--
Andre Heinecke | ++49-541-335083-262 | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
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