For details about this bug: see https://bugs.kde.org/show_bug.cgi?id=77862 And i've tested these patches , works. Best way to test: get online , get kmail run , get offline , and if you get online again , try reading some mails , you'll found it never works until kio_imap restarted ( also kmail ) ebuilds , patches are attached. Reproducible: Always Steps to Reproduce: 1.emerge kmail 2. 3.
Created attachment 245220 [details] kdepimlibs fix , kio_*
Created attachment 245222 [details] kmail patch
Could you attach only the patches themselves in non-compressed format?
For KDE 4.5.0 users, a patch against kdepimlibs-4.5.0 will also be required.
Created attachment 245285 [details] Patch against kdepimlibs
Created attachment 245286 [details] kipaddressinuse cpp implementation
Created attachment 245288 [details] kipaddressinuse header
Created attachment 245290 [details, diff] kmail fixes
Just for the record, please try kmail 4.4.6
Anyway , this bug is kdepimlibs related bugs , upgraded to kdepim 4.4.6 , kde 4.5.1 , kmail 4.4.6 , bug was not fixed.
Created attachment 257642 [details] log of KMail IMAP crash I get this error message as well, but kio_imap4 dies too fast to attach gdb. I tried the patches and they did not work for me, and I'm using hardened. grsec: Segmentation fault occurred at (nil) in /usr/bin/kdeinit4[kio_imap4:6597] uid/euid:1000/1000 gid/egid:1022/1022, parent /usr/bin/kdeinit4[kdeinit4:17603] uid/euid:1000/1000 gid/egid:1022/1022
Edit: I neglected to mention that I am running the listed kdepimlibs ebuild and the kmail ebuild bumped to the current x86 stable version (4.4.7)
Problem went away when I rebuilt kdepimlibs, and kmail. I thought I had done that already, nevermind.
based on the comments in kde's bug i'll have to close it, it needs some sort of upstream decision. I really hope it will be fixed for 4.6 (I'm CC'ed on the upstream bug)