if (name != null) {
name = EncoderUtil.encodeAddressDisplayName(name);
}
final String domain = mailbox.getDomain();
final DomainList route = mailbox.getRoute();
final String atDomainList;
if (route == null || route.size() == 0) {
atDomainList = null;
} else {
atDomainList = route.toRouteString();
}
final String localPart = mailbox.getLocalPart();
final FetchResponse.Envelope.Address result = buildMailboxAddress(name, atDomainList, localPart, domain);
return result;
}