can't create folders with '/' in the name on servers where hierarchy delimiter is not '/'
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: Bienvenu, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
1.97 KB,
image/png
|
Details |
Reporter | ||
Updated•24 years ago
|
Updated•23 years ago
|
Updated•20 years ago
|
![]() |
||
Comment 3•16 years ago
|
||
Reporter | ||
Comment 4•16 years ago
|
||
Assignee | ||
Updated•16 years ago
|
Updated•16 years ago
|
Comment 5•16 years ago
|
||
Comment 7•6 years ago
|
||
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.
Comment 8•6 years ago
•
|
||
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?
Comment 9•6 years ago
|
||
...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 :-)).
Comment 10•6 years ago
|
||
Perhaps Alfred or Nikolay can shed light
Comment 11•6 years ago
|
||
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
Comment 12•6 years ago
|
||
(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.
Updated•2 years ago
|
Description
•