Bug 66469

Summary: Disconnected IMAP tries to use the prefix as another mailbox
Product: [Unmaintained] kmail Reporter: Unai Garro <ugarro>
Component: disconnected IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: coolo, johanneswilm, sven.burmeister, toivo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Unai Garro 2003-10-23 18:04:15 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

It seems that kmail considers the mailbox prefix as another mailbox, when using the disconnected mode.

The structure on the imap server that I have has a directory called "Mail" which contains all the mailbox files (sent, outbox...).  So I set it to use "Mail" as prefix.

This setup works works fine on the online mode. But with the disconnected imap version, kmail seems to try to read "Mail" as a mailbox, which is not (it's just a folder that contains all the mailboxes which are plain files)

So I get the following error:

"Unable to open folder Mail. The server replied: SELECT failed: Can't open Mail: not a selectable mailbox"
Comment 1 bo 2003-10-28 18:13:26 UTC
*** Bug 54664 has been marked as a duplicate of this bug. ***
Comment 2 Carsten Burghardt 2003-12-17 14:56:59 UTC
*** Bug 70683 has been marked as a duplicate of this bug. ***
Comment 3 Carsten Burghardt 2004-02-18 09:09:20 UTC
*** Bug 75437 has been marked as a duplicate of this bug. ***
Comment 4 Carsten Burghardt 2004-03-22 23:17:02 UTC
CVS commit by burghard: 

The dimap folder listing now works with prefix. It uses the same logic as online imap.
CCMAIL: 66469-done@bugs.kde.org


  M +96 -104   kmfoldercachedimap.cpp   1.64
  M +5 -7      kmfoldercachedimap.h   1.29



Comment 5 Jarkko Suontausta 2004-08-19 16:34:42 UTC
This should probably be reopened, because I'm having almost exactly the same problem with an up-to-date kmail (3.3 BRANCH). From the logs:

"kmail: check mail started - connections for host mail.cs.tut.fi now is 1
kio (KIOJob): error 8 ACL
kio (KIOJob): error 63 Unable to open folder Mail. The server replied: SELECT 
failed: Can't open Mail: not a selectable mailbox"

("Mail" is the prefix, as in the previous case)
Comment 6 Nick Brown 2004-09-27 15:10:30 UTC
I'm using kde cvs from a few days ago. (though problem also seen with 3.3)

I can access my mail just fine using an account with type=imap (I have prefix=/Mail/).
If I try to use type=cachedimap (with all other details the same) I get the following error message;

---
Error while reading folder Work on the server:
Unable to open folder Mail/Work. The server replied: SELECT failed:
Can't open Mail/Work: not a selectable mailbox
---

I see similar messages for all sub folders of Mail.

The server is IMAP4rev1 v10.220
Comment 7 Nick Brown 2004-09-28 00:21:23 UTC
Please reopen this bug.
Comment 8 Nick Brown 2004-09-28 17:17:11 UTC
Here is the debug output (with server name removed);

kmail: [void KIMProxy::unregisteredFromDCOP(const QCString&)] anonymous-23651
kmail: processNextCheck, remaining 1
kmail: for host <snip>.<snip>.com current connections=0 and limit is 0
kmail: connection limit reached: false
kmail: processing next mail check for Work
kmail: check mail started - connections for host <snip>.<snip>.com now is 1
kmail: [void KIMProxy::registeredToDCOP(const QCString&)] kwalletmanager
kmail: dcopService: kopete, appId: kwalletmanager
kmail: [void KIMProxy::registeredToDCOP(const QCString&)] anonymous-23701
kmail: dcopService: kopete, appId: anonymous-23701
kmail: [void KIMProxy::unregisteredFromDCOP(const QCString&)] anonymous-23701
kio (KIOJob): error 8 ACL
kio (KIOJob): error 63 Unable to open folder Mail. The server replied: SELECT failed: Can't open Mail: not a selectable mailbox
kmail: updateAnnotationFolderType:
kio (KIOJob): error 8 ANNOTATEMORE
kmail: processNextCheck, remaining 0
kmail: account Work finished check
kmail: connections to server <snip>.<snip>.com now 0


This with CVS HEAD from about 2 hours ago.