On Thu, Jan 22, 2009 at 1:03 PM, Markus Wiederkehr <markus.wiederk...@gmail.com> 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 <john....@acme.org>"); > MailBoxListField from = Fields.from(mailbox); > > or > > Message message = ... > Mailbox mailbox = new Mailbox("john....@acme.org"); > 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: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org