Bug 336271 - Error while reading mails from folder
Summary: Error while reading mails from folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: 4.12
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 17:41 UTC by Guillermo Reisch
Modified: 2017-01-07 22:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillermo Reisch 2014-06-15 17:41:27 UTC
I have 5 Identical email that I Can't remove when click email it say
"Kmail Folders: Error while reading mails from folder"
"Resource Kmail Forlder is broken. This resource is now online"

Looking in the terminal I see:

akonadi_mixedmaildir_resource_0(25706)/akonadiresource (maildir): Failed to read item "1402013723.R607.goku" in Maildir "/home/guille/mail/scoseria" 
akonadi_mixedmaildir_resource_0(25706)/akonadiresource (maildir): "Error while reading mails from folder " 
ItemRetrieverException :  Unable to retrieve item from resource: <html>Invalid item retrieved</html>
akonadi_mixedmaildir_resource_0(25706)/akonadiresource (maildir): Failed to read item "1402013723.R607.goku" in Maildir "/home/guille/mail/scoseria" 
akonadi_mixedmaildir_resource_0(25706)/akonadiresource (maildir): "Error while reading mails from folder " 
ItemRetrieverException :  Unable to retrieve item from resource: <html>Invalid item retrieved</html>
Ignoring source as no aboutToFinish handling is in progress. 
Ignoring source as no aboutToFinish handling is in progress. 

guille@goku:~/mail/scoseria/new$ ls -lah 
..........
-rw-r--r-- 1 guille guille 3,8K jun  5 17:19 1401999564.R506.goku
-rw-r--r-- 1 guille guille    0 jun  5 21:05 1402013118.R550.goku
-rw-r--r-- 1 guille guille    0 jun  5 21:10 1402013419.R932.goku
-rw-r--r-- 1 guille guille    0 jun  5 21:15 1402013723.R607.goku
-rw-r--r-- 1 guille guille 4,2K jun  6 09:27 1402057665.R48.goku
..........

There is 0 byte mails in maildir! Kmail get crazy by this emails.
Ok, something is bad because it shuld be NO 0 byte files in that directory.
But akonadiresource should handle this.

It seen that this 0 byte files are created when you click to FAST the mails and switch from mail to mail BEFORE all filters rules are executed, duplicating mails and mees up...
or actualy you are seen mail and change status (actualy from "new" to "cur" only for seen the mail)
SOW IS A F**K RACE CONDITION (yes mi OLD pc help in make this because Iam currently more fast to see mail that akonadi/kmail2 can filter)

Akonadi resource should note that is a 0 byte file and remove this or handle properly.

ii  kmail                                                       4:4.12.4-1  
ii  akonadi-server                                              1.11.0-1
ii  libakonadi*                                              4:4.12.4-1

Debian testing/stable/unstable (mix of flavors)
Comment 1 Denis Kurz 2016-09-24 20:35: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 2 Denis Kurz 2017-01-07 22:32:28 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.