Bug 271713

Summary: akonadi kmail folders rewsource does not pick-up new folders copied to the directory immediately
Product: [Frameworks and Libraries] Akonadi Reporter: S. Burmeister <sven.burmeister>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description S. Burmeister 2011-04-25 21:40:25 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

If one copies a new folder via die file manager to the directory that is set for a kmail folders resource and sync the folder (and all sub-folders) that folder should be shown immediately in kmail as well as akondisconsole.

Yet it takes minutes before it suddenly shows-up. Even restarting akonadi does not show it right-away.

The time until it shows-up might depend on the amount of emails in the folder. This does however not have anything to do with showing the folder, even if its content is still being worked on the folder can already be shown.

Reproducible: Always
Comment 1 S. Burmeister 2011-04-25 21:47:06 UTC
Forgot to add: After the folder is shown, in this case it is a folder with sub-folders of type maildir. The content of the folders is still not shown although there are thousands of files in them.

If one syncs one of the folders akonadiconsole only shows:

akonadi_mixedmaildir_resource_0 (0x8a66b0) 30121 LSUB 86 0 (RESOURCE akonadi_mixedmaildir_resource_0) (ANCESTORS INF) 
akonadi_mixedmaildir_resource_0 (0x8a66b0) * 86 83 (NAME "CCed_bugs" MIMETYPE (message/rfc822 inode/directory) REMOTEID "CCed_bugs" REMOTEREVISION "" RESOURCE "akonadi_mixedmaildir_resource_0" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (HEAD)) ANCESTORS ((83 "Mailinglists") (25 "/home/rabauke/Mail") (0 "")) AccessRights "a") 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30121 OK List completed 

It then takes again some time until akonadi starts reading the content, i.e.:

akonadi_mixedmaildir_resource_0 (0x8a66b0) 30122 SELECT SILENT 86 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30122 OK Completed 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30123 FETCH 1:* FULLPAYLOAD ALLATTR CACHEONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30123 OK FETCH completed 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30124 BEGIN 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30124 OK Begin completed 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30125 X-AKAPPEND 86 0 (\MimeType[message/rfc822] "\\RemoteId[1012443893.4696.cjbSS:2,S]" \SEEN) ("PLD:HEAD[1]":2443,"PLD:ENVELOPE[1]":301) {2744} 
akonadi_mixedmaildir_resource_0 (0x8a66b0) + Ready for literal data (expecting 2744 bytes) 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30125 [UIDNEXT 52645] 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30125 OK Append completed 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30126 X-AKAPPEND 86 0 (\MimeType[message/rfc822] "\\RemoteId[1012446917.4696.u9yPx:2,S]" \SEEN) ("PLD:HEAD[1]":2088,"PLD:ENVELOPE[1]":376) {2464} 
akonadi_mixedmaildir_resource_0 (0x8a66b0) + Ready for literal data (expecting 2464 bytes) 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30126 [UIDNEXT 52646] 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30126 OK Append completed 
akonadi_mixedmaildir_resource_0 (0x8a66b0) 30127 X-AKAPPEND 86 0 (\MimeType[message/rfc822] "\\RemoteId[1012451418.4696.E4LRn:2,S]" \SEEN) ("PLD:HEAD[1]":2462,"PLD:ENVELOPE[1]":301) {2763} 

and so on.
Comment 2 Denis Kurz 2016-09-24 20:43:02 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:18:05 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.