>�From: Charles Benett <[EMAIL PROTECTED]>
>�Date: Mon Aug 21 12:29:28 EDT 2000
>
> Hi!
> Starting to think about IMAP implementation. Obvious question is how to
> deal with multiple folders without breaking POP3 & LocalDelivery.
> I think the answer may be as simple as this:
> 
> in org.apache.james.James, method getUserInbox(String name)
> turn:  String dest = localInbox.getChildDestination(userName)
> into:  String dest = localInbox.getChildDestination(userName) + "Inbox"
> + File.separator;

I have to admit I'm a little weak on how localInbox is working in this situation, but 
I think that's a good approach.  I've seen several mail servers function as a POP3 and 
IMAP4 server for the same account... basically you get an IMAP4 account, and if you 
use POP3, you only see the INBOX.  (this is a minor point, but in IMAP4 I think it's 
supposed to be INBOX, not Inbox... I'd have to check the protocol to see if case 
sensitivity matters.)

> So, rather than mail for testUser being in, e.g.
> .../var/mail/localinbox/testUser, it's in
> .../var/mail/localinbox/testUser/Inbox
> 
> This appears to work with existing James & POP3.
> 
> It would then be upto the IMAP server to manage additional mailboxes.(By
> adding MailRepositries)
> You could have some users using POP3 and some using IMAP. 
> Or have I missed something?

I think that's fine... I think you'll also need the ability to create folders for that 
user, and that would check that the parent folders are in place (for instance, if you 
created the folder Technical/James, it should fail unless you have a folder named 
Technical).  INBOX is just a top level folder that can't have subfolders (another 
check).  So you might have INBOX, Sent, Draft, Technical as top level folders with 
Technical/James, Technical/Tomcat, as next level folders.  I think '/' is a valid 
delimiter (and might even be specified in the RFC, again, something to check).

> Also, in MailRepository getChildDestination(), is the replacement of
> '.'s in the user name there to handle Windows file systems? (Doesn't
> seem necessary for Unix). It works with email addresses such as
> harry.potter, but gives a slightly unexpected directory structure.

I'm not sure how the best way to encode this would be... windows has a special meaning 
for '.', but that seems to be going away with the NT file system.

> Thanks,

Thanks!

Serge Knystautas
Loki Technologies, Inc.
http://www.lokitech.com/


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to