final int size = addressList.size();
final List<FetchResponse.Envelope.Address> addresses = new ArrayList<FetchResponse.Envelope.Address>(size);
for (int i = 0; i < size; i++) {
final Address address = addressList.get(i);
if (address instanceof Group) {
final Group group = (Group) address;
addAddresses(group, addresses);
} else if (address instanceof org.apache.james.mime4j.field.address.Mailbox) {
final org.apache.james.mime4j.field.address.Mailbox mailbox = (org.apache.james.mime4j.field.address.Mailbox) address;
final FetchResponse.Envelope.Address mailboxAddress = buildMailboxAddress(mailbox);