Bug 74272 - Cannot subscribe to cyrus imap "sharedprefix" folders
Summary: Cannot subscribe to cyrus imap "sharedprefix" folders
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Carsten Burghardt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 20:02 UTC by Mike Green
Modified: 2004-02-10 19:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mozilla mail advanced settings dialogue (6.67 KB, image/png)
2004-02-05 20:05 UTC, Mike Green
Details
Folder list before subscription attempt (13.89 KB, image/png)
2004-02-05 20:15 UTC, Mike Green
Details
Subscription list with folder selected (14.42 KB, image/png)
2004-02-05 20:16 UTC, Mike Green
Details
Resulting error message (4.11 KB, image/png)
2004-02-05 20:17 UTC, Mike Green
Details
ethereal capture of subscribing to imap mailbox (11.22 KB, application/octet-stream)
2004-02-08 16:45 UTC, Mike Green
Details
imapd.conf from cyrus server (303 bytes, text/plain)
2004-02-08 16:51 UTC, Mike Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Green 2004-02-05 20:02:39 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
OS:          Linux

I am connecting to a cyrus imapd server (2.1.15) that uses alternate namespaces - it publishes by default all publicly accessable folders in the "Shared Folders" tree.

When I attempt to subscribe to folders beneath the "Shared Folders" tree, I receive an error message:
Subscribe of folder
imaps://whoever@mailserver.domain.com:993/Shared Folders/ failed.

I confirm the error message, and then cannot see the folders I subscribe to.

Mozilla mail has an interface that allows you to specify the public (shared) namespace, as well as the "Other Users" namespace, and allows the server to override these settings.

I would like to see that functionality in the imap folder subscription capabilities of kmail!
Comment 1 Mike Green 2004-02-05 20:05:16 UTC
Created attachment 4527 [details]
Mozilla mail advanced settings dialogue

Screen shot of the advanced IMAP settings in mozilla - features I would love to
see in kmails imap settings.
Comment 2 Mike Green 2004-02-05 20:15:19 UTC
Created attachment 4528 [details]
Folder list before subscription attempt
Comment 3 Mike Green 2004-02-05 20:16:36 UTC
Created attachment 4529 [details]
Subscription list with folder selected
Comment 4 Mike Green 2004-02-05 20:17:17 UTC
Created attachment 4530 [details]
Resulting error message
Comment 5 Carsten Burghardt 2004-02-05 20:24:17 UTC
Subject: Re:  New: Cannot subscribe to cyrus imap "sharedprefix" folders

On Thursday 05 February 2004 20:02, KDE User wrote:
> I am connecting to a cyrus imapd server (2.1.15) that uses alternate
> namespaces - it publishes by default all publicly accessable folders in the
> "Shared Folders" tree.
>
> When I attempt to subscribe to folders beneath the "Shared Folders" tree, I
> receive an error message: Subscribe of folder
> imaps://whoever@mailserver.domain.com:993/Shared Folders/ failed.

Do you see the folders when you do not activate the "show only subscribed 
folders" checkbox in the account settings? Did you enter the prefix to you 
Shared folders in your account settings.

> Mozilla mail has an interface that allows you to specify the public
> (shared) namespace, as well as the "Other Users" namespace, and allows the
> server to override these settings.

This wish is duplicate of #30707


Carsten

Comment 6 Mike Green 2004-02-05 20:32:25 UTC
Yes, all folders show up correctly if "show only subscribed folders" is checked.  The prefix entry will only allow me to subgroup everything under ONE set of prefixes - either specify INBOX. for my own personal folders (and then cannot see shared folders), or specify "Shared Folders", which results in me only being able to see the shared folders, none of my personal folders.  That is why there are namespaces for personal (my inbox), shared (public), and other users (user.).

Entering "Shared Folders" for the prefix also causes my kmail to pop hundreds of error messages, locks up kmail, and makes my box unusable.
Comment 7 Carsten Burghardt 2004-02-05 23:31:15 UTC
Thanks for taking the time, but this is a duplicate of a wish.

*** This bug has been marked as a duplicate of 30707 ***
Comment 8 Carsten Burghardt 2004-02-05 23:34:17 UTC
Subject: Re:  Cannot subscribe to cyrus imap "sharedprefix" folders

On Thursday 05 February 2004 20:32, KDE User wrote:
> Entering "Shared Folders" for the prefix also causes my kmail to pop
> hundreds of error messages, locks up kmail, and makes my box unusable.

I guess the correct prefix would be "public" or something, not "Shared 
Folders". You can check this with

telnet <server> 143
1 login <login> <password>
2 namespace

This lists your available namespaces

Comment 9 Mike Green 2004-02-05 23:42:13 UTC
I know exactly what the namespaces are, I set the imap server up myself.  I want to see ALL of the namespaces, not one single "preferred" namespace.

I see the duplicate "wish" was from 3 years ago, and has not been resolved.  Is there any intention of bumping this wish up to "bug" status, or is it going to go on ignored for 3 more years?

Should I be commenting here, or on the 3 year old dead #30707?  I certainly don't consider this resolved - far from it.  It is basic functionality that is missing.  If anyone wants to actually work on it, I will be a willing victim.
Comment 10 Carsten Burghardt 2004-02-06 00:31:08 UTC
I didn't close it as fixed but simply marked it as a duplicate - which it is if you consider the namespace issue.
It doesn't matter if you comment to this one or to the other but it doesn't help us if we have to identical reports in the database.
So I limit this report to the bug itself: the error when you try to subscribe to a subfolder of your shared folders. You entered "Shared Folders" as prefix and got a correct folder listing? And when you want to subscribe to a folder you get the error message?
Comment 11 Mike Green 2004-02-06 16:12:47 UTC
Here is the output of the namespace command:
1 OK User logged in
2 namespace
* NAMESPACE (("" "/")) (("Other Users/" "/")) (("Shared Folders/" "/"))
2 OK Completed

My imap server has several folders underneath my inbox, and a public folders tree for shared mailbox resources.  The imap server itself offers any "public" folders in the "Shared Folders" namespace.

Here is the behaviours I am seeing.

Show only subscribed folders is unchecked, prefix is "Shared Folders":

I see my inbox with no subfolders, I see the public folder with all of its subfolders.  I see email in my inbox, but of course no inbox subfolders show up.

Show only subscribed folders is unchecked, prefix is left empty:

I see my inbox and inbox subfolders.  The subfolders are displayed as folders on the same level as my inbox (which is desired behavior).  Not sure if I am describing this correctly.  I see a "Shared Folders" folder, expand it and have access to the "public" folder space and all of the subfolders beneath it.  This is desired behavior, except I want to be able to only subscribe to certain folders in here and view only subscribed folders.

Show only subscribed folders is unchecked, prefix is "INBOX":

I see only my inbox (and email in it), no other folders or subfolders.


Show only subscribed folders checked, prefix empty:

I see my inbox and all of its subfolders - the subfolders are not displayed as subfolders but on the root level along side the inbox (expected, desired).  A folder called "Shared Folders" is in the list - it is empty and does not display any subfolders.  I go to subscribe, "Shared Folders" is in the list, expandable, and shows as subscribed.  I expand Shared Folders in the subscription list, see the public folder, subscribe to it.  Expand public, see several subfolders, subscribe to the first one.  Click OK, no error messages.  In my folder list, "Shared Folders" does not show subfolders, I cannot access the mailbox I just subscribed to.  Just for shit and grins I close kmail, and reopen.  Curiously now I see no inbox or subfolders, I see some apparently random mailboxes displayed that I am not subscribed to, and actually exists several subfolders deep into the "public" hierarchy.  All of these folders are displayed on the same level (none of them have subfolders that can be accessed), and I cannot see any email in any of them.  This is definetly not desired or expected behavior.  My inbox is missing.  I click on subscriptions and it shows the correct mailboxes are subscribed to, but what I am seeing in the mail folder list is definetly not what I see in the subscription list.  I click ok to close the subscription list, kmail crashes and goes away.

Is this the kind of information you need?

Comment 12 Carsten Burghardt 2004-02-06 18:48:35 UTC
Subject: Re:  Cannot subscribe to cyrus imap "sharedprefix" folders

On Friday 06 February 2004 16:12, KDE User wrote:
> Show only subscribed folders is unchecked, prefix is "Shared Folders":
>
> I see my inbox with no subfolders, I see the public folder with all of its
> subfolders.  I see email in my inbox, but of course no inbox subfolders
> show up.

Correct. Some more correct behaviour follows....

> Show only subscribed folders checked, prefix empty:
>
> I see my inbox and all of its subfolders - the subfolders are not displayed
> as subfolders but on the root level along side the inbox (expected,
> desired).  A folder called "Shared Folders" is in the list - it is empty
> and does not display any subfolders.  I go to subscribe, "Shared Folders"
> is in the list, expandable, and shows as subscribed.  I expand Shared
> Folders in the subscription list, see the public folder, subscribe to it. 
> Expand public, see several subfolders, subscribe to the first one.  Click
> OK, no error messages.  In my folder list, "Shared Folders" does not show
> subfolders, I cannot access the mailbox I just subscribed to. 

I'll check that.

Comment 13 Carsten Burghardt 2004-02-07 20:09:20 UTC
Subject: KDE_3_2_BRANCH: kdepim/kmail

CVS commit by burghard: 

Only make subscription items checkable that are actually selectable.
Occurs with cyrus altnamespace and shared folders.
CCMAIL: 74272-done@bugs.kde.org


  M +7 -5      subscriptiondialog.cpp   1.10.2.1


--- kdepim/kmail/subscriptiondialog.cpp  #1.10:1.10.2.1
@@ -126,13 +126,15 @@ void SubscriptionDialog::slotListDirecto
       {
         KGroupInfo info(mSubfolderNames[i]);
-        if (mSubfolderNames[i].upper() == "INBOX")
+        if ( mSubfolderNames[i].upper() == "INBOX" )
           info.name = i18n("inbox");
         info.subscribed = false;
         info.path = mSubfolderPaths[i];
-        // create a new checkable item
-        if (parent)
-          item = new GroupItem(parent, info, this, true);
+        // create a new item
+        // only checkable when the folder is selectable
+        bool checkable = ( mSubfolderMimeTypes[i] == "inode/directory" ) ? false : true;
+        if ( parent )
+          item = new GroupItem(parent, info, this, checkable);
         else
-          item = new GroupItem(folderTree(), info, this, true);
+          item = new GroupItem(folderTree(), info, this, checkable);
       }
       if ( item ) // reset


Comment 14 Mike Green 2004-02-08 08:18:45 UTC
You fixed the problem that you described - there is no checkbox beside the namespace "Shared Folders" in the subscription list.  However, I still cannot subscribe to subfolders beneath it.  I add the checkmark, click ok, no error message.  Cannot see the subfolder I just subscribed to.  Reopen subscriptions - the check mark beside the original subfolder is not there...
Comment 15 Carsten Burghardt 2004-02-08 11:40:43 UTC
Subject: Re:  Cannot subscribe to cyrus imap "sharedprefix" folders

On Sunday 08 February 2004 08:18, Mike Green wrote:
> ------- Additional Comments From kdebugs@linuxwiz.org  2004-02-08 08:18
> ------- You fixed the problem that you described - there is no checkbox
> beside the namespace "Shared Folders" in the subscription list.  However, I
> still cannot subscribe to subfolders beneath it.  I add the checkmark,
> click ok, no error message.  Cannot see the subfolder I just subscribed to.
>  Reopen subscriptions - the check mark beside the original subfolder is not
> there...

Strange, this works here with your mentioned setup.
OK, please provide an ethereal log of the communication between your host and 
the IMAP server when you try to subscribe to a folder.


Thanks,

Carsten

Comment 16 Mike Green 2004-02-08 16:45:25 UTC
Created attachment 4577 [details]
ethereal capture of subscribing to imap mailbox

Ethereal capture running on the imap server host of communication while
subscribing to a cyrus imap server. I am attempting to subscribe to "Shared
Folders/Archives_tquser/read_mail".  I see it in the subscription list, click
on it to create the check mark, click ok.  No errors.  The folder I just
subscribed to does not appear in my folder list.

Packets 1-17: login
Packets 17-23: idle
Packets 24-52: click subscription
Packets 53:    click ok on the subscription
Comment 17 Mike Green 2004-02-08 16:51:19 UTC
Created attachment 4578 [details]
imapd.conf from cyrus server

Here is the imapd.conf from the cyrus imap server that I am connecting to.
Comment 18 Carsten Burghardt 2004-02-10 19:40:07 UTC
Fixed the kioslave