Bug 153665

Summary: kio_imap4 stalls when searching the "/ folder" of an imap account
Product: [Frameworks and Libraries] kio Reporter: Thorsten Staerk <dev>
Component: imapAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test case to reproduce
debugging output of non-blocking program
debugging output of blocking program

Description Thorsten Staerk 2007-12-08 09:02:28 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

As discussed in bug 153448, kio_imap4 stalls when searching the "/ folder" of an imap account.
Comment 1 Thorsten Staerk 2007-12-08 22:50:31 UTC
Created attachment 22415 [details]
test case to reproduce

this is a test case to reproduce, you will need a cyrus or exchange or dovecot
imap server on localhost and a user dummy with password password. Start the
program and click on the button. With strace you can see that kio_imap4 stalls
on a select operation.
Comment 2 Thorsten Staerk 2007-12-08 22:56:10 UTC
The relevant thing about Attachment #22415 [details] is that if you change the URL from "imap://dummy:password@localhost:143/;SECTION%3DHEADER%20Subject%20%22E%22" to
"imap://dummy:password@localhost:143/inbox;SECTION%3DHEADER%20Subject%20%22E%22"

it works perfectly. And otherwise, the kioslave stalls and prevents other folders from being searched and mails from being displayed.
Comment 3 Thorsten Staerk 2007-12-08 23:52:33 UTC
Created attachment 22417 [details]
debugging output of non-blocking program

I used https://svn.kde.org/home/kde/trunk/KDE/kdesdk/scripts/add_trace to
change all .cpp files in the imap kioslave, recompiled and used kdebugdialog
--fullmode to put all imap4 related debugging output into a file. Here it is,
it is from a non-blocking run (so, searching in /inbox).
Comment 4 Thorsten Staerk 2007-12-08 23:53:43 UTC
Created attachment 22418 [details]
debugging output of blocking program

I used https://svn.kde.org/home/kde/trunk/KDE/kdesdk/scripts/add_trace to
change all .cpp files in the imap kioslave, recompiled and used kdebugdialog
--fullmode to put all imap4 related debugging output into a file. Here it is,
it is from a blocking run (so, searching in /).
Comment 5 Thomas McGuire 2007-12-12 23:39:06 UTC
Reassigning the bugs of the SMTP, IMAP and POP ioslaves to kdepim-bugs.
Comment 6 Christophe Marin 2018-11-17 12:45:00 UTC
kio_imap4 doesn't exist anymore.