On Thu, Jan 22, 2009 at 1:03 PM, Markus Wiederkehr
<[email protected]> wrote:
> I am still working on MIME4J-100 and would now like to add methods for
> creating address header fields..
>
> For this it would be nice if Mailbox had a one-argument constructor to
> create a Mailbox object from an e-mail address without having to parse
> the address first..
>
> I also wonder if NamedMailbox could be removed.. The optional
> display-name could be merged into Mailbox (i.e. Mailbox would become
> NamedMailbox)..
>
> The goal would be to be able to write something like this:
>
>  Mailbox mailbox = new Mailbox("John Doe <[email protected]>");
>  MailBoxListField from = Fields.from(mailbox);
>
> or
>
>  Message message = ...
>  Mailbox mailbox = new Mailbox("[email protected]");
>  message.setFrom(mailbox);
>
> Any objections to removing NamedMailbox?

no objections providing that the more verbose constructors are still
available in mailbox

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to