I will be working on this for the next release of our product, so when I have 
something decent working I will give it back to you guys and you can decide if 
you want to incorporate it or not.

Cheers,
Martin

-----Original Message-----
From: Robert Burrell Donkin [mailto:robertburrelldon...@gmail.com] 
Sent: den 18 mars 2009 13:28
To: James Developers List
Subject: Re: [jira] Created: (IMAP-71) Design: Consolidate Sessions

On Wed, Mar 18, 2009 at 12:37 PM, Martin.Bergljung
<martin.berglj...@opsera.com> wrote:
> Some more design stuff:
>
> It should be possible to i18n error messages from any method in the API.

+1

> For example, if I today try to create a mailbox which already exist, I get 
> the following message displayed in the
> Email client:
>
> "Cannot create the folder. The server responded: 'CREATE processing failed'"
>
> It does not tell me what is wrong and it gives me unimportant information.
>
>
> The message should be generated with similar technique to what is available 
> for subscribe():
>
>   throw new 
> SubscriptionException(HumanReadableTextKey.GENERIC_SUBSCRIPTION_FAILURE);
>
> So for mailbox exist exception I would like to throw:
>
>   throw new MailboxException(MyTextKey.MAILBOX_EXIST_CANNOT_CREATE);

+1

> and then i18n properties files to resolve:
>
> mytexts.mailbox.exist.cannot.create=A mailbox with this name already exist, 
> cannot create it!

+1

fancy volunteering to contribute a patch along those lines?

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to