[EMAIL PROTECTED] wrote:
>
> You'll have to write some code to implement this behavior, but I think it's not very
>difficult. I'm not sure the best way to do this, but here are some ideas to start.
>
> Right now in the JAMES.conf.xml file, there's a reference to the class
>org.apache.james.MailRepository with the destination attribute set to "file://" You
>could modify MailRepository to look for query string parameters such as ?maxsize=10M.
> MailRepository would then check when you save data to it whether you'd be exceeding
>the limit for this repository, and fail accordingly. As POP3 only has 1 mailbox per
>user, this is more easy to calculate (IMAP4 would be more difficult I think).
>
> But really you don't want all MailRepository objects to have this limit, so you'd
>want to pass this parameter from the UserManager somehow. I haven't really delt with
>the UserManager at all, but it seems there should be a way to set your particular
>MailRepositories for your users with some parameters like this.
>
> Maybe Federico or someone more knowledge on that code could suggest how to proceed.
>On a related note, I think it'd be good for us to change MailRepository to an
>interface, and then provide the one default Avalon/file repository as the standard
>installation. Right now to build the relational database store, you have to extend
>the MailRepository class, overriding all the methods, which isn't the best OO
>approach. ;) We could keep MailRepository in the same place, and I think with the
>way Avalon works, you'd only have to change the conf file to point to the new
>implementation class.
Done!
Charles
>
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
>
> >From: [EMAIL PROTECTED]
> >To: Peter Donald <[EMAIL PROTECTED]>, Java Apache Mail Server
><[EMAIL PROTECTED]>
> >Subject: Reply: Re: Can james control the user mail box space?
> >Date: Wed Aug 16 21:19:08 EDT 2000
> >
> > Hi Peter Donald,
> > I mean such as that I must limit the user's mailbox space.For Example I
>control every user only have a 10M mailbox. How could I do?
> > Thanks for you response.
> > Leslie
> > >Hi JAMES,
> > > I want to know if the james can control it's users space. If he can,
> > how could I do? If he cannot, how could I do to control every user's space?
> > > Leslie
> >
> > define what you mean by *control*
> >
> > Cheers,
> >
> > Pete
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]