You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <nm...@byteaction.de> on 2006/06/07 17:15:25 UTC
Re: [jira] Updated: (JAMES-523)
Configuration should be handed over to MailRepository
Seems a good modification for me. Anyone see a problem? if not i whould
commit it.
bye
Norman
Am Mittwoch, den 07.06.2006, 09:47 +0000 schrieb Joachim Draeger (JIRA):
> [ http://issues.apache.org/jira/browse/JAMES-523?page=all ]
>
> Joachim Draeger updated JAMES-523:
> ----------------------------------
>
> Attachment: inboxRepositoryConfig.patch
>
> It's not a big deal. :-)
>
> > <inboxRepository><repository> Configuration should be handed over to MailRepository
> > -----------------------------------------------------------------------------------
> >
> > Key: JAMES-523
> > URL: http://issues.apache.org/jira/browse/JAMES-523
> > Project: James
> > Type: Improvement
>
> > Components: James Core, MailStore & MailRepository
> > Reporter: Joachim Draeger
> > Priority: Minor
> > Fix For: 2.4.0
> > Attachments: inboxRepositoryConfig.patch
> >
> > The section in config.xml
> > <inboxRepository>
> > <repository destinationURL="dbfile://maildb/inbox/" type="MAIL"/>
> > </inboxRepository>
> > is parsed by James.initialize() and the destinationURL gets saved. When an inbox is accessed via getUserInbox(String) the configuration for the MailRepository is generated from scratch with the destinationURL parameter.
> > So it is not possible to pass anything else to the MailRepository from the configuration entry.
> > Example: The postfix attribute cannot be evaluated and gets lost.
> > <inboxRepository>
> > <repository destinationURL="maildir://var/mail/inboxes/" postfix="/Maildir/" type="MAIL"/>
> > </inboxRepository>
> > Solution: The Configuration entry should be copied and the destinationURL attribute modified for the corresponding user
>