Deliver a mail to the processor.
if (isDebug) {
StringBuffer logBuffer =
new StringBuffer(128)
.append("Sending mail ")
.append(mail)
.append(" to ")
.append(processor);
log(logBuffer.toString());
}
mail.setState(processor);
if (noticeText != null) {
if (mail.getErrorMessage() == null) {
mail.setErrorMessage(noticeText);
} else {
StringBuffer errorMessageBuffer =
new StringBuffer(256)
.append(mail.getErrorMessage())
.append("\r\n")
.append(noticeText);
mail.setErrorMessage(errorMessageBuffer.toString());
}
}