Closed Bug 211793 Opened 21 years ago Closed 21 years ago

Problem selecting folders when IMAP server directory = INBOX.

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davidjw, Assigned: Bienvenu)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.2.1) Gecko/20021204
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624

Mozilla Mail works fine with the IMAP Server directory field blank. When I set
it to INBOX. to show the sub-folders at the same level as the inbox the view
works fine but when I try to select a folder it says "the folder does not exist
or must be subscribed to". I've tried this with Courier 1.7.3 & 2.0.0, then I
enabled the mozilla imap logging and saw that in the first case it sends "select
INBOX.test" which works and in the second it sends "select test" which doesn't.

Reproducible: Always

Steps to Reproduce:
1.setup imap account winth Server directory field blank, all the folders show up
as subfolders of inbox. select a subfolder and you see the emails.
2.Go into Server Settings| advanced and set Server Directory = INBOX. the
folders now display in the same level as the inbox, select a folder and you get
the error message.
3.

Actual Results:  
you can't see the messages in the folder

Expected Results:  
show me the messages!!

This is the end of the log file producing the error. As you can see it does
select "test". With the "Server Directory" field blank it does "select
INBOX.test" which works fine.

-931481[1ea97c0]: 1ea87b0:192.168.57.253:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok.

-931481[1ea97c0]: 1ea87b0:192.168.57.253:A:SendData: 2 select "test"

-931481[1ea97c0]: ReadNextLine [stream=1ea9418 nb=0 needmore=1]
-931481[1ea97c0]: ReadNextLine [stream=1ea9418 nb=56 needmore=0]
-931481[1ea97c0]: 1ea87b0:192.168.57.253:A:CreateNewLineFromSocket: 2 NO Mailbox
does not exist, or must be subscribed to.

-950353[21c9b80]: ImapThreadMainLoop leaving [this=21c8c90]
-931481[1ea97c0]: ImapThreadMainLoop leaving [this=1ea87b0]
which build are you running? Your user agent and build identifier are
inconsistent. I believe this was fixed around the 1.4 time frame by checking if
the imap server directory and the personal name space were the same (i.e., "INBOX.")
Status: UNCONFIRMED → NEW
Ever confirmed: true
I take it back - there was an attempt to fix this by some mozilla contributors,
but it didn't work, apparently, because I can recreate this.
Attached patch proposed fixSplinter Review
this fixes the problem for me - we weren't prepending the online server
directory for the folder select. I need to test this against a UW server, where
people set the online server directory for different reasons...
fix checked in, r/sr=mscott
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Please let me know if this fixes it for you - it will be in tomorrow's 1.5 trunk
build.
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: