HibernateUtil.saveOrUpdate(r);
Logger.debug(this, "Saved recipient with 500 last result" + r.getEmail());
User user = APILocator.getUserAPI().loadByUserByEmail(r.getEmail(), APILocator.getUserAPI().getSystemUser(), false);
UserProxy sub = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);
Logger.debug(this, "Subscriber =" + sub.getInode());
if(InodeUtils.isSet(sub.getInode())){
Logger.debug(this, "errorMessage: " +errorMessage);
if(errorMessage == null){
sub.setLastMessage("Email Bounced");
}
else{
sub.setLastMessage(errorMessage.replaceAll("<","<").replaceAll(">", ">"));
}
sub.setLastResult(500);
HibernateUtil.saveOrUpdate(sub);
Campaign c = (Campaign) InodeFactory.getParentOfClass(r, Campaign.class);
if(c != null && InodeUtils.isSet(c.getInode())) {