[Kde-pim] Cannot read old local email (mixedmaildir resource) - "unable to list items"

David Faure faure at kde.org
Wed May 2 22:33:01 BST 2012


On Wednesday 02 May 2012 21:19:13 David Faure wrote:
> 1) a dbus timeout when opening the folder, because the resource parses the 
> whole maildir listing (14K emails). I'm trying to increase the dbus timeout 
> (using the method I added to Qt-4.8), but it seems to lead to an immediate
> timeout... I'll keep debugging.

Fixed, I was confusing seconds and milliseconds.

So, how about this patch?

--- a/server/src/storage/itemretrievalmanager.cpp
+++ b/server/src/storage/itemretrievalmanager.cpp
@@ -104,6 +104,10 @@ OrgFreedesktopAkonadiResourceInterface* 
ItemRetrievalManager::resourceInterface(
     delete iface;
     return 0;
   }
+#if QT_VERSION >= 0x040800
+  // DBus calls can take some time to reply -- e.g. if a huge local mbox has 
to be parsed first.
+  iface->setTimeout(5 * 60 * 1000); // 5 minutes, rather than 25 seconds
+#endif
   mResourceInterfaces.insert( id, iface );
   return iface;
 }

It fixes the case where requestItemDelivery, called by ItemRetrievalJob::start, 
takes more than 25 seconds to reply. This can happen when the mixedmaildir 
resource has to list a big maildir folder or mbox file.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5

_______________________________________________
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