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;

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?

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.

Thanks,

Charles



------------------------------------------------------------
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