Open Bug 63038 Opened 24 years ago Updated 2 years ago

can't create folders with '/' in the name on servers where hierarchy delimiter is not '/'

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows NT
defect

Tracking

(Not tracked)

People

(Reporter: Bienvenu, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

When creating folders on servers whose hiearchy delimiter is not '/', we need to escape '/' (and '^') before passing the server name to the url.
accept
Status: NEW → ASSIGNED
QA Contact: esther → huang
Priority: -- → P4
related/dup of bug 29926?
QA Contact: huang → gchan
Product: MailNews → Core
bienvenu, still working on this ~8 year old bug?
Flags: wanted-thunderbird3?
No, but I wonder if it's still a bug...
Assignee: bienvenu → nobody
Product: Core → MailNews Core
QA Contact: grylchan → networking.imap
Status: ASSIGNED → NEW
Keywords: qawanted
wanted‑thunderbird3- at least until someone has confirmed this is still an issue
Flags: wanted-thunderbird3? → wanted-thunderbird3-
I don't understand the bug, so I supply an image :) Running latest trunk WinXP with Courier-IMAP as server on FreeBSD. Created the folder "test", then created a subfolder in that called "this/is/a/test". Is it the correct behavior or should it have created "this/is/a/test"?

I only have one test account that uses . as delimiter: a courier imap server. And I don't see a way to in have a / in the folder name.

So this is still a bug.

Not completely sure this is 100% a tb problem. If I telnet to the server and create the folder I see this:

. create "INBOX.AAA.gene/smith"
. NO Invalid mailbox name

Note: INBOX.AAA existed before attempting the imap command.
With tb, when I create the folder name gene/smith using the dialog, I see this:

. create "INBOX.AAA.gene.smith"
. OK

So tb changes the / to . and the two levels are created rather than a single folder named gene/smith (or gene.smith).

Using telnet and the tb dialog, I tried escaping the / various ways and quoting the "gene/smith" and it didn't help. Maybe a base64 string of some sort is needed?

...Or maybe the slash in a folder (mailbox) name is not possible since the folder name would be used in at least 2 filenames in the ImapMail directory (e.g., gene/smith.msf and also gene/smith if offline sync) and a slash can't be part of a filename. But I'm no expert on char encoding (I barely understand ascii :-)).

Perhaps Alfred or Nikolay can shed light

Flags: needinfo?(shopik)
Flags: needinfo?(infofrommozilla)
Keywords: qawanted
Priority: P4 → --

Observation: On 3 servers that use / (not .) as hierarchy delimiter, when creating subfolder gene.smith :

Openwave creates single folder, gene.smith
Gmail creates single folder, gene.smith
IdeaImapServer creates folder and subfolder, gene/smith

Looking closely at IMAP spec RFC 3501, I see nothing that explicitly forbids / in a mailbox (folder) name when the delimiter is not /.
Mailbox naming: https://tools.ietf.org/html/rfc3501#section-5.1
Some discussion of / and \: https://tools.ietf.org/html/rfc3501#section-5.1.3

(In reply to gene smith from comment #11)

Looking closely at IMAP spec RFC 3501, I see nothing that explicitly forbids / in a mailbox (folder) name when the delimiter is not /.

I agree.
Using '/' or even '' is problematic if the IMAP hierarchies are mapped as folders in the file system. So just as the TB does in his profile. And I suspect many servers handle it the same way.

If a server returns a mailbox name with a '/', we would need to escape it in some way. I am afraid that we have not yet implemented such a mechanism.

Flags: needinfo?(infofrommozilla)

I don't have any input on that

Flags: needinfo?(shopik)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: