recipientFolder.setUserAccount( account );
saveContactFolder( recipientFolder );
}
if ( addresses != null ) {
for (InternetAddress address : addresses) {
Contact contact = getContactByEmail( recipientFolder, address.getAddress() );
if ( contact == null ) {
contact = new Contact();
contact.setLastName( address.getPersonal() );
contact.setEmail( address.getAddress() );
contact.setContactFolder( recipientFolder );
saveContact( contact );
}
}
}
}