[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkdepim=5D_mailcommon=3A_Fix_inbox_filtering_for_mai?=
From: Andre Heinecke <aheinecke () intevation ! de>
Date: 2011-05-31 19:05:18
Message-ID: 20110531190518.7E2DCA60A4 () git ! kde ! org
[Download RAW message or body]
Git commit 834c795d8d548b264caa781d31c3ae5ba078f424 by Andre Heinecke.
Committed on 31/05/2011 at 20:38.
Pushed by aheinecke into branch 'master'.
Fix inbox filtering for mailservers that use .inbox
The remoteID .inbox was not recognized by the kmail kernel
before. With this commit inbox mail filters will also be
applied for inboxes with the remoteID .inbox
Cherry-picked from: 4.6 : 1dbe3bf4fee4ed41338f196765f4cdd5d2424d30
M +3 -1 mailcommon/mailkernel.cpp
http://commits.kde.org/kdepim/834c795d8d548b264caa781d31c3ae5ba078f424
diff --git a/mailcommon/mailkernel.cpp b/mailcommon/mailkernel.cpp
index 925d5c3..7fce00f 100644
--- a/mailcommon/mailkernel.cpp
+++ b/mailcommon/mailkernel.cpp
@@ -292,7 +292,9 @@ bool Kernel::folderIsSentMailFolder( const Akonadi::Collection &col )
bool Kernel::folderIsInbox( const Akonadi::Collection& collection )
{
- if ( collection.remoteId().toLower() == "inbox" || collection.remoteId().toLower() == "/inbox" )
+ if ( collection.remoteId().toLower() == "inbox" ||
+ collection.remoteId().toLower() == "/inbox"||
+ collection.remoteId().toLower() == ".inbox" )
return true;
return false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic