Bug 259052

Summary: Akonadi IMAP stalls when server subscription includes non-existent folders
Product: [Frameworks and Libraries] Akonadi Reporter: Thiago Macieira <thiago>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 1.4.80   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thiago Macieira 2010-12-06 21:47:15 UTC
Version:           1.4.80 (using Devel) 
OS:                Linux

When I have some folders in my server-side subscription list that don't exist (because they were deleted but not unsubscribed), Akonadi often stalls and doesn't finish the process.

If this happens, the entire resource process becomes unresponsive. It's impossible to trigger a new synchronisation or cancel the current running one. It's also impossible to configure it.

gdb shows that the process is idling in the event loop.

Reproducible: Sometimes

Steps to Reproduce:
1. Start synchronisation in kmail or in akonadiconsole

Actual Results:  
Synchronisation stalls somewhere

Expected Results:  
Synchronisation should finish

$ akonadiserver --version
Akonadi 1.4.80 (revision: d0502b1)

Account: IMAP, disconnect mode enabled, server-side subscriptions enabled
Server: Microsoft Exchange 2010
Transport: SSL

Example of traffic:
C: A001036 SELECT "INBOX/dev/ci errors"
S: A001036 NO INBOX/dev/ci errors doesn't exist.
Comment 1 Volker Krause 2010-12-24 12:57:23 UTC
Revision 1208436 fixes handling of not available subscribed folders. I couldn't get the IMAP resource to hang in this case here though, it just created phantom folders that triggered errors on access, but that might vary depending on the server.