Bug 55295 - can't create subsubfolders in IMAP accounts
Summary: can't create subsubfolders in IMAP accounts
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 18:47 UTC by Andy Parkins
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

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 Andy Parkins 2003-02-27 18:47:06 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Debian stable Packages

In an IMAP account entry right-click and create new subfolder, say "test"
Right click the new "test" folder (which has no messages in) and choose neww subfolder again, say "test2"

Error message saying can't create folder.

Looking in the IMAP folder on disk there is a new file called "test" representing the first created mailbox - unfortunately this isn't what was wanted, what was wanted was a new directory called "test".

The solution i would suggest is distinguishing between mailboxes and folders. so right-clicking would give two options "new subfolder" and "new mailbox".
Comment 1 Carsten Burghardt 2003-02-28 13:57:01 UTC
That is exactly what kmail does - it tries to check if the server supports folders that 
can contain mails and folders. If the server doesn't support this kmail asks if you want 
to create a folder that contains folders (a dir) or a folder that contains mails. Isn't that 
your case? What kind of server are you using?  
Comment 2 Andy Parkins 2003-02-28 15:02:26 UTC
Am running uw-imapd.

Works in mozilla.  And as mentioned above it works if I create the directory by
hand in my IMAP folder on the disk e.g. mkdir "IMAP/test" and then "test"
appears in kmail *and* allows me to create the subsubfolder "test2".  But again
I can't create subfolders under test2.

I appreciate why this is a tricky problem; mbox mailboxes are files and so there
is no way to create a directory under a file - that's fine.  However if the
mailbox has no messages in it then kmail could detect that, delete the mailbox
file and create a directory instead.  If there are messages in the mailbox
already then the error message is entirely appropriate.
Comment 3 Joaquim Homrighausen 2003-04-25 10:20:55 UTC
Using KDE 3.1.1 and KMAIL 1.5.1, I can no longer create IMAP-folders at all. In the "Belongs to" 
property, I can only select "Top level" and "archive" (local storage). It worked on my previous 
installation (which was 3.1/1.5). The guy sitting four feet away from me can create IMAP-folders 
just fine. So for some reason, KMAIL on my machine has decided that it cannot create IMAP-folders 
all of a sudden :-( 
Comment 4 Stephan Kulow 2003-04-25 10:30:41 UTC
Subject: Re:  can't create subsubfolders in IMAP accounts

Am Friday 25 April 2003 10:20 schrieb Joaquim Homrighausen:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=55295
>
>
>
>
> ------- Additional Comments From joho@webbplatsen.se  2003-04-25 10:20
> ------- Using KDE 3.1.1 and KMAIL 1.5.1, I can no longer create
> IMAP-folders at all. In the "Belongs to" property, I can only select "Top
> level" and "archive" (local storage). It worked on my previous installation
> (which was 3.1/1.5). The guy sitting four feet away from me can create
> IMAP-folders just fine. So for some reason, KMAIL on my machine has decided
> that it cannot create IMAP-folders all of a sudden :-(

You're using SuSE 8.2 and did a YOU update and the guy did not?

Greetings, Stephan

Comment 5 Carsten Pohle 2003-04-29 11:57:53 UTC
I have the same problem here (SuSE 8.1 with supplementary SuSE KDE 3.1-RPMs, 
KMail 1.5.1). I don't receive an error message when trying to create a new subfolder on 
an IMAP account, but the folder is created locally. 
 
Creating IMAP subfolders worked on the same server with previous versions of KMail. 
 
Comment 6 lacroix 2003-05-08 16:07:52 UTC
I can confirm this (SuseLinux 8.1 and KDE 3.1.1 and Kmail 1.5.1 from the 
supplements (not shiped with Suse 8.1)). 
 
If you use the context menu: All folders created under inbox are created as local 
folders (not on the IMAP Server side and not under the IMAP-Box tree).  
 
if you use Folder -> New Folder ("Ordner anlegen" in german): You cannot select 
the IMAP-Box from the drop down menu ("Odnerposition" in german) at all.  
 
No problems with POP3 boxes (of course, they are allready local i guess ...;)). 
 
IMAP server is Cyrus. It work with the shipped verison of Kmail on Suse 8.1. 
Mozilla-Mail does work fine too. 
 
lacroix 
Comment 7 Ingo Klöcker 2003-05-12 01:17:29 UTC
Subject: Re:  can't create subsubfolders in IMAP accounts

Dear SuSE users!

The KMail 1.5.1 version which was released by SuSE is unfortunately 
broken as you have discovered yourselves. Either downgrade to KMail 1.5 
or check whether the problem is fixed in the latest KMail 1.5.1 release 
from SuSE. For your information: The original bug report has nothing to 
do with the bug in the SuSE release.
Comment 8 Carsten Burghardt 2003-11-08 14:23:43 UTC
Subject: kdebase/kioslave/imap4

CVS commit by burghard: 

I have no idea what that part was for but it broke the detection of the folder type. You can create mbox folders again.
CCMAIL: 55295-done@bugs.kde.org


  M +5 -3      imap4.cc   1.136


--- kdebase/kioslave/imap4/imap4.cc  #1.135:1.136
@@ -802,4 +802,5 @@ IMAP4Protocol::mkdir (const KURL & _url,
   enum IMAP_TYPE type =
     parseURL(_url, aBox, aSection, aLType, aSequence, aValidity, aDelimiter);
+  kdDebug(7116) << "IMAP4::mkdir - parseURL of " << _url << " returned type " << type << endl;
   if (type == ITYPE_BOX)
   {
@@ -1763,5 +1764,5 @@ IMAP4Protocol::parseURL (const KURL & _u
                it != listResponses.end (); ++it)
           {
-//            kdDebug(7116) << "IMAP4::parseURL - checking " << _box << " to " << (*it).name() << endl;
+            //kdDebug(7116) << "IMAP4::parseURL - checking " << _box << " to " << (*it).name() << endl;
             if (_box == (*it).name ())
             {
@@ -1811,5 +1812,6 @@ IMAP4Protocol::parseURL (const KURL & _u
   if (_type == "LIST")
   {
-    retVal = ITYPE_DIR;
+    /* what the heck is that part for ?? (carsten) */
+//    retVal = ITYPE_DIR; 
     if (_hierarchyDelimiter.isEmpty()) _hierarchyDelimiter ="/";
   }