Version: unspecified OS: Linux Preliminary bug: kmail2/akonadi create 1 byte files in mail directories. Those files cause kmail2 to not show any emails for that folder. The "loading" overlay icon keeps on spinning forever. Taken from bug 263223 which is actually a different issue. "I run akonadiconsole and got this output when clicking on the KMail folder: posting retrieval request for item 63748 there are 1 queues and 0 items in mine processing retrieval request for item 63748 parts: ("ENVELOPE") of resource: "akonadi_mixedmaildir_resource_1" request for item 63748 still pending - waiting akonadi_mixedmaildir_resource_1(29349)/akonadiresource (maildir): Failed to read item "{869a924c-06ab-4538-97df-bbd3cffb991b}" in Maildir "/home/mcv/Mail/inbox" akonadi_mixedmaildir_resource_1(29349)/akonadiresource (maildir): "Error while reading mails from folder " continuing request for item 63748 "{869a924c-06ab-4538-97df-bbd3cffb991b}" failed: "Resource was unable to deliver item" ItemRetrieverException : Resource was unable to deliver item Actually there is a file named like above (in ~/Mail/inbox/new), but it's only one byte long, hexedit shows: 0x0a." Reproducible: Always Steps to Reproduce: Create a 1 byte file in a local mail directory alternative: find out how akonadi/kmail2 manages to do so Actual Results: kmail2 does not display any emails in that folder Expected Results: do not create 1 byte files ignore 1 byte files and display the folder's content
You also see this behaviour with the mixedmaildir resource ?
(In reply to comment #1) > You also see this behaviour with the mixedmaildir resource ? In my case it's mixed maildir as well, i.e. my kmail folders resource.
I imported every folder from Kmail1 to Kmail2 except for one, for which akonadi was issuing an error message. Moving emails to it was possible, yet all the old ones were inaccessible. I came across this report today, which lead me to search for irregular files in the directory, and found one old, empty file. After removing it, the folder works fine in kmail2.
I can confirm this with current master. The folder only shows one mail without subject until I remove that one byte file again. I named it x, kmail renamed it to x:2,S
now I cannot reproduce it anymore. I went back, compiling an old akonadi server and tag v4.10.0 for kdepim, kdepimlibs, kdepim-runtime, but I still cannot reproduce it - should have debugged it right away.
Sven, thank you for your report. As I haven´t seen 1-byte sized files since May 2013 and Wolfgang also cannot reproduce it anymore while I have seen some before, I am closing this. Feel free to reopen if it still happens for you. Please try to find a pattern that reproduces it and describe it step by step.