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?
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]