Closed Bug 217532 Opened 21 years ago Closed 21 years ago

Imap folder that only contains sub-folders is ignored in subscribe dialog

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hd, Assigned: Bienvenu)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529

I use an IMAP server directory, with subdirectories.

In this server directory I have one directory that only contains directories, no
folders.  When I go to the subscribe pop-up, this directory containing only
subdirectories is not presented.  Other directories containing both folders and
subdirectories are presented.

If I uncheck the "show only subscribed folders" in the "advanced Imap server
settings" pop-up, then the directory and the subdirectories are correctly
displayed in the main mail presentation sidebar.  But, the directory containing
only subdirectories is still not presented in the subscribe pop-up.

The "server supports folders that contain sub-folders and messages" option is
checked.

While investigating, I created a mail folder in the directory containing only
subdirectories and VOILA!, everything worked correctly.



Reproducible: Always

Steps to Reproduce:
1.
2.
3.



Expected Results:  
The subscribe dialog should present all subdirectories in the IMAP mail
directory, not just the ones containing mailfolders, on the assumption that
drilling into the diretory (and any subdirectories) will eventually result in a
mail folder that can be subscribed.
could you attach an imap protocol log by following these instructions? thx.

http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
Status: UNCONFIRMED → NEW
Ever confirmed: true
connected to IMAP server with "show subscribed folders only" checked.
Went to subscribe dialog.  The directory "past" was not displayed.  

The "past" directory contains subdirectories that contain folders.

Then I unchecked "show subscribed folders only".  A few moments later, the
folders list refreshed and the "past" directory appeared on the side bar and I
was able to drill down to the subdirectories.

When I re-entered the subscribe dialog, the "past" directory was not displayed.


Then I closed Mozilla and sent this log file.
One possibility is because when we do this:

list "" "Mail/%/%"

we get back 

* LIST (\NoSelect) "/" Mail/Past/

* LIST (\NoSelect) "/" Mail/Past/1996

that might confuse the subscribe UI.

Also, do you set your IMAP server directory to "Mail" or "Mail/" ?
Status: NEW → ASSIGNED
I use the single word "Mail", no trailing slash
Can you try adding a trailing slash and let me know if it works? Also, I've
redone some of this code since the 05/29 build so at some point you'll need to
download a new build. However, with a new build, until I fix it, you will *need*
to add a trailing slash.
I went in and unsubscribed to all of the folders in the subdirectories of /Past.
 Then I changed the mail folder string to "mail/", saved, and exited Mozilla.

Upon restarting, the "Past" directory is not shown in the subscribe dialog.

Hubert
Attached patch potential fixSplinter Review
I can't reproduce this problem with any of my servers, or by putting in
debugging code, but this patch makes it so we strip off the trailing delimiter
from LIST responses for the subscribe UI like we do for the folder pane.
Attachment #130796 - Flags: superreview?(scott)
Attachment #130796 - Flags: superreview?(scott) → superreview+
fix checked in - can you try a 1.6 build? thx.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
How do I obtain a built copy of 1.6?  I went and got a
"daily" build and it's version is set to 1.5b.

Hubert
download a "nightly" build from www.mozilla.org tomorrow.
I downloaded and installed build ID: 2003091209 and the problem is still there.
 The list display on the folder pane works correctly, but the subscribe dialog
does not display the "directory containing only directories".
would it be possible to give me temporary access to this server?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
this really has been fixed now, in 1.7
Status: REOPENED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: