[
https://issues.apache.org/jira/browse/IMAP-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim-Christian Mundt updated IMAP-168:
-------------------------------------
Attachment: mailboxPath2-IMAP.patch
mailboxPath2-server.patch
Well, to explain the basic idea which Norman and I thought might not only solve
this problem but also improve the code of James in general: Instead of having a
path like #namepace.user.mailbox we introduce a class MailboxPath(namespace,
user, name) which can contain any characters without problems to hold the parts
apart. Storage implementations have to take care to store the three components.
The patches I attached are my attempt to just do that. I only changed the
central parts and left the storage modules for now. First I'd like to make
sure, this is the the right way to go. THIS CODE DEFINITELY NEEDS REVIEW AND
COMMENTS.
The LSUB processor is also unchanged because it didn't really look right. The
rfc says, it should be exactly like the list command, but the implementation is
completely different - not correct in my opinion. It works, of course, but
probably only because in real life not all possible cases occur and we don't
communicate the namespace ("" is used hard coded).
While I think the Store and Processor modules are correct, special attention
should be on the listener mechanism of which I'm not yet sure how it works.
Many tests are not fixed. As soon as this is approved as a way to go we can
change the store implementations and tests accordingly.
> mailboxes can't be identified 100% unambiguously using virtual hosting
> ----------------------------------------------------------------------
>
> Key: IMAP-168
> URL: https://issues.apache.org/jira/browse/IMAP-168
> Project: JAMES Imap
> Issue Type: Bug
> Components: Mailbox
> Reporter: Tim-Christian Mundt
> Assignee: Norman Maurer
> Priority: Blocker
> Fix For: 0.1
>
> Attachments: mailboxPath2-IMAP.patch, mailboxPath2-server.patch
>
>
> When virtual hosting is enabled, mailbox names will be like
> #[email protected]
> However, those mailboxes could be misassigned. E.g.
> #[email protected]
> could be a mailbox of [email protected] or [email protected]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]