Bug 287523 - KMail doesn't synchronize mails after suspend
Summary: KMail doesn't synchronize mails after suspend
Status: RESOLVED DUPLICATE of bug 287514
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.7
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 10:31 UTC by Unknown
Modified: 2012-03-11 17:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2011-11-25 10:31:11 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

When the machine returns from suspend KMail is not able to fetch new mails from GMail IMAP.

Here is what akonadiconsole says when I click on the INBOX "Refresh folder" action:

akonadi_imap_resource_6 (0x807d80) 1265 LSUB 120 0 (RESOURCE akonadi_imap_resource_6) (STATISTICS true ANCESTORS INF) 
akonadi_imap_resource_6 (0x807d80) * 120 115 (NAME "INBOX" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/INBOX" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_6" MESSAGES 98 UNSEEN 0 SIZE 9275365 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((115 "imap://szotsaki@imap.gmail.com/") (0 "")) ENTITYDISPLAY "(\"Inbox\" \"mail-folder-inbox\" \"\" ())" collectionquota "4891555840 8022637568" imapquota " %%%% STORAGE % 7834607 %%%% STORAGE % 4776910" uidnext "57858" collectionflags "\\Answered \\Flagged \\Draft \\Deleted \\Seen $REPLIED $ATTACHMENT $FORWARDED \\*" uidvalidity "2" timestamp "1322135655") 
akonadi_imap_resource_6 (0x807d80) 1265 OK List completed 


Akonadi Job tracker:
Job ID: bed230
Job Type: Akonadi::CollectionFetchJob
State: Ended


MySQL queries during the "refresh":

111125 11:23:54    41 Prepare   SELECT id, remoteId, remoteRevision, name, parentId, resourceId, subscribed, cachePolicyInherit, cachePolicyCheckInterval, cachePolicyCacheTimeout, cachePolicySyncOnDemand, cachePolicyLocalParts, queryString, queryLanguage FROM CollectionTable WHERE id = ?
                   41 Reset stmt
                   41 Execute   SELECT id, remoteId, remoteRevision, name, parentId, resourceId, subscribed, cachePolicyInherit, cachePolicyCheckInterval, cachePolicyCacheTimeout, cachePolicySyncOnDemand, cachePolicyLocalParts, queryString, queryLanguage FROM CollectionTable WHERE id = 0
                   41 Close stmt
                   41 Prepare   SELECT MimeTypeTable.id, MimeTypeTable.name FROM MimeTypeTable, CollectionMimeTypeRelation WHERE CollectionMimeTypeRelation.Collection_id = ? AND CollectionMimeTypeRelation.MimeType_id = MimeTypeTable.id
                   41 Reset stmt
                   41 Execute   SELECT MimeTypeTable.id, MimeTypeTable.name FROM MimeTypeTable, CollectionMimeTypeRelation WHERE CollectionMimeTypeRelation.Collection_id = 120 AND CollectionMimeTypeRelation.MimeType_id = MimeTypeTable.id
                   41 Close stmt
                   41 Prepare   SELECT count(id), sum(size) FROM PimItemTable WHERE ( collectionId = ? )
                   41 Reset stmt
                   41 Execute   SELECT count(id), sum(size) FROM PimItemTable WHERE ( collectionId = 120 )
                   41 Close stmt
                   41 Prepare   SELECT count(DISTINCT PimItemTable.id) FROM PimItemTable INNER JOIN PimItemFlagRelation ON ( PimItemTable.id = PimItemFlagRelation.PimItem_id ) INNER JOIN FlagTable ON ( FlagTable.id = PimItemFlagRelation.Flag_id ) WHERE ( PimItemTable.collectionId = ? AND ( FlagTable.name = ( ? ) OR FlagTable.name = ( ? ) ) )
                   41 Reset stmt
                   41 Execute   SELECT count(DISTINCT PimItemTable.id) FROM PimItemTable INNER JOIN PimItemFlagRelation ON ( PimItemTable.id = PimItemFlagRelation.PimItem_id ) INNER JOIN FlagTable ON ( FlagTable.id = PimItemFlagRelation.Flag_id ) WHERE ( PimItemTable.collectionId = 120 AND ( FlagTable.name = ( '\\SEEN' ) OR FlagTable.name = ( '$IGNORED' ) ) )
                   41 Close stmt
                   41 Prepare   SELECT CollectionAttributeTable.id, CollectionAttributeTable.collectionId, CollectionAttributeTable.type, CollectionAttributeTable.value FROM CollectionAttributeTable WHERE ( collectionId = ? )
                   41 Reset stmt
                   41 Execute   SELECT CollectionAttributeTable.id, CollectionAttributeTable.collectionId, CollectionAttributeTable.type, CollectionAttributeTable.value FROM CollectionAttributeTable WHERE ( collectionId = 120 )
                   41 Close stmt


The IMAP resource is always shown as "Ready". The state won't change to "Synching INBOX (100%)" or similar.

In Akonadi console the "Restart Agent" and "Synchronize All" are also useless. 

Just after I toggle the agent on/off, starts working fine.

Reproducible: Always



Expected Results:  
 

OS: Linux (x86_64) release 3.1.0-1.2-desktop
Compiler: gcc
Comment 1 Volker Krause 2012-03-11 17:29:23 UTC

*** This bug has been marked as a duplicate of bug 287514 ***