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

List:       kde-pim
Subject:    Re: [Kde-pim] mailfilter does not see all incoming messages
From:       Andras Mantia <amantia () kde ! org>
Date:       2013-02-27 10:07:23
Message-ID: 20130227100724.3616B1DC0461 () mail ! kdab ! com
[Download RAW message or body]

Hi,


Guy Maurel wrote:

> Hello!
> 
> On Tuesday 26 February 2013 13:34:36 Wolfgang Rohdewald wrote:
>> Am Mittwoch, 13. Februar 2013, 10:34:46 schrieb Wolfgang Rohdewald:
> 
>> 
>> This seems to work. Patch attached. Please review - if OK, I will commit
>> to 4.10 and merge to master.
> I discover some more problems.
> There appear *more* message as I sent to the server. See the screenshot.
> mysql says:
> 
+-------+------------------------+--------------+---------------------+------+
> | id    | remoteId               | collectionId | datetime            |
> | size |
> 
+-------+------------------------+--------------+---------------------+------+
> | 43165 | 1361903215.R932.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43164 | 1361903215.R872.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43163 | 1361903215.R840.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43162 | 1361903215.R655.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43161 | 1361903215.R65.castor  |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43160 | 1361903215.R6.castor   |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43159 | 1361903215.R341.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43158 | 1361903215.R244.castor |          358 | 2013-02-26 19:26:56 | 
> | 711 |
> | 43157 | 1361903215.R99.castor  |          358 | 2013-02-26 18:26:56 |
> | 1269 |
> | 43156 | 1361903215.R734.castor |          358 | 2013-02-26 18:26:56 |
> | 1269 |
> | 43155 | 1361903215.R606.castor |          358 | 2013-02-26 18:26:56 |
> | 1269 |
> | 43154 | 1361903215.R1.castor   |          358 | 2013-02-26 18:26:56 |
> | 1269 |
> | 43153 | 1361903215.R435.castor |          358 | 2013-02-26 18:26:55 |
> | 1269 |
> | 43152 | 1361903215.R266.castor |          358 | 2013-02-26 18:26:55 |
> | 1269 |
> 
> After a little time I get the log:
> 19:26:56.171 AkonadiAgentServer(5038) KPIM::Maildir::moveEntryTo: Unable
> to find "1361903215.R244.castor"
> 19:26:56.177 AkonadiAgentServer(5038) KPIM::Maildir::moveEntryTo: Unable
> to find "1361903215.R341.castor"
> 19:26:56.184 AkonadiAgentServer(5038) KPIM::Maildir::moveEntryTo: Unable
> to find "1361903215.R6.castor"
> 19:26:56.191 AkonadiAgentServer(5038) KPIM::Maildir::moveEntryTo: Unable
> to find "1361903215.R65.castor"
> 19:26:56.198 AkonadiAgentServer(5038) KPIM::Maildir::moveEntryTo: Unable
> to find "1361903215.R655.castor"
> 
> selecting all the messages and move them to the trash...
> Maildir::removeEntry unable to find:  "1361903215.R244.castor"
> 19:39:03.749 AkonadiAgentServer(5038) MaildirResource::itemRemoved: Item
> removed 43158  in collection : 358
> Maildir::removeEntry unable to find:  "1361903215.R341.castor"
> 19:39:03.752 AkonadiAgentServer(5038) MaildirResource::itemRemoved: Item
> removed 43159  in collection : 358

I'm not sure if this is filter related or not, might be though. Is this 
after the patch from Wolfgang? Or you can try the attached patch that fixes 
the same problem for other operations as well.

Andras



["mailfilterfix.diff" (text/x-patch)]

diff --git a/mailfilteragent/mailfilteragent.h b/mailfilteragent/mailfilteragent.h
index 2e6cc9d..062e92d 100644
--- a/mailfilteragent/mailfilteragent.h
+++ b/mailfilteragent/mailfilteragent.h
@@ -52,6 +52,17 @@ class MailFilterAgent : public Akonadi::AgentBase, public \
Akonadi::AgentBase::Ob  
     void showFilterLogDialog(qlonglong windowId = 0);
 
+    virtual void itemChanged(const Akonadi::Item& item, const QSet< QByteArray >& \
partIdentifiers) {}; +    virtual void itemLinked(const Akonadi::Item& item, const \
Akonadi::Collection& collection) {}; +    virtual void itemMoved(const Akonadi::Item& \
item, const Akonadi::Collection& collectionSource, const Akonadi::Collection& \
collectionDestination) {}; +    virtual void itemRemoved(const Akonadi::Item& item) \
{}; +    virtual void itemUnlinked(const Akonadi::Item& item, const \
Akonadi::Collection& collection) {}; +
+    virtual void collectionAdded(const Akonadi::Collection& collection, const \
Akonadi::Collection& parent) {}; +    virtual void collectionChanged(const \
Akonadi::Collection& collection) {}; +    virtual void collectionMoved(const \
Akonadi::Collection& collection, const Akonadi::Collection& collectionSource, const \
Akonadi::Collection& collectionDestination) {}; +    virtual void \
collectionRemoved(const Akonadi::Collection& collection) {}; +
   private Q_SLOTS:
     void initializeCollections();
     void initialCollectionFetchingDone( KJob* );



_______________________________________________
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