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

List:       kde-commits
Subject:    KDE/kdepim/akonadi/resources/imap
From:       Szymon Stefanek <pragma () kvirc ! net>
Date:       2009-07-31 18:59:32
Message-ID: 1249066772.537076.1356.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1005304 by stefanek:

Fix the IMAP resource "stall" if a notification
for an unhandled type of change is received.



 M  +5 -1      imapresource.cpp  


--- trunk/KDE/kdepim/akonadi/resources/imap/imapresource.cpp #1005303:1005304
@@ -241,6 +241,8 @@
 {
   const QString mailBox = mailBoxForRemoteId( collection.remoteId() );
 
+  kDebug() << "Got notification about item added for local id " << item.id() << " \
and remote id " << item.remoteId(); +
   // save message to the server.
   MessagePtr msg = item.payload<MessagePtr>();
 
@@ -268,7 +270,7 @@
   Q_ASSERT( uid > 0 );
 
   const QString remoteId =  collectionRemoteId + "-+-" + QString::number( uid );
-  kDebug() << "Setting remote ID to " << remoteId;
+  kDebug() << "Setting remote ID to " << remoteId << " for item with local id " << \
item.id();  item.setRemoteId( remoteId );
 
   changeCommitted( item );
@@ -347,6 +349,8 @@
     store->setMode( KIMAP::StoreJob::SetFlags );
     connect( store, SIGNAL( result( KJob* ) ), SLOT( onStoreFlagsDone( KJob* ) ) );
     store->start();
+  } else {
+    changeProcessed();
   }
 }
 


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

Configure | About | News | Add a list | Sponsored by KoreLogic