Bug 440543 - org.kde.pim.kimap: The stream parser raised an exception: Unable to read more data
Summary: org.kde.pim.kimap: The stream parser raised an exception: Unable to read more...
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.17.80
Platform: OpenSUSE Linux
: NOR normal with 20 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2021-08-03 08:18 UTC by Aaron Williams
Modified: 2021-08-25 01:04 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 Aaron Williams 2021-08-03 08:18:39 UTC
SUMMARY
Akonadi repeatedly spits this out whenever I receive an email with over 300 names in the CC list with an IMAP account on Office365.com.

STEPS TO REPRODUCE
1. Have corporate send out a mass invitation calendar event with 306 entries in the CC list. 

OBSERVED RESULT
When Akonadi hits this it keeps spitting out the above.

Here is the debug output:

C: A000005 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION BACKENDAUTHENTICATE CHILDREN IDLE NAMESPACE LITERAL+
S: A000005 OK CAPABILITY completed.
C: A000006 NAMESPACE
S: * NAMESPACE ( ("" "/") ) ( ) ( )
S: A000006 OK NAMESPACE completed.
C: A000007 ID ("name" "Kontact IMAP Resource")
S: * ID ( name Microsoft.Exchange.Imap4.Imap4Server version 15.20 )
S: A000007 OK ID completed
C: A000008 APPEND "INBOX" "02-Aug-2021 18:17:06 +0000" {12388476}
S: + Ready for additional command text.
C: Received: from BN8PR18MB3009.namprd18.prod.outlook.com (2603:10b6:408:99::17) by BYAPR18MB2469.namprd18.prod.outlook.com with HTTPS; Mon, 2 Aug 2021 18:21:13 +0000
...
HUGE CC list, last column is 15411 and the CC list is terminated with a ^M
...
S: Cc: BAD Command Error. 10
X

EXPECTED RESULT
It shouldn't barf.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Akonadi version: 21.07.80
ADDITIONAL INFORMATION
Deleting the email and calendar entry from the Outlook web interface does not fix this and it continues to barf on this, even after I have completely deleted it from the deleted items recovery folder.
akonadictl vacuum and fsck do not fix this either. It is forever stuck on this email. Once it hits this email, it is unable to donwnload any newer messages.
Comment 1 Aaron Williams 2021-08-03 08:45:08 UTC
I was finally able to clear the email using the akonadiconsole. Somehow the email was stuck in Deleted Items.  Note that this problem happens every single time I get an invitation to a large corporate event with a bazillion CC entries.
Comment 2 Aaron Williams 2021-08-10 16:14:01 UTC
This is really becoming a problem as this is happening every time I receive a corporate-wide email.
Comment 3 Aaron Williams 2021-08-10 16:36:18 UTC
This time the Akonadi console was unable to clear it out. I deleted the file_db_data and search_db_data and ran fsck and this cleared up the problem. This problem happens every time I receive a corporate-wide email. My guess is that something in Akonadi cannot handle such a long cc list.
Comment 4 Aaron Williams 2021-08-25 01:04:52 UTC
This is happening every time there is a corporate-wide meeting where there is a huge CC list.