/** * Reset the SMTP protocol to the initial state, which is the state after * a server issues a 220 service ready greeting. */ public void resetSmtpProtocol() { resetMailTransaction(); this.helo = null; }
/** @deprecated use {@link #resetMailTransaction()} */ @Deprecated public void resetMessageState() { resetMailTransaction(); }
/** * Reset the SMTP protocol to the initial state, which is the state after a * server issues a 220 service ready greeting. */ public void resetSmtpProtocol() { resetMailTransaction(); this.helo = Optional.empty(); }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.resetMailTransaction(); sess.sendResponse("250 Ok"); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.resetMailTransaction(); sess.sendResponse("250 Ok"); } }
sess.resetMailTransaction(); sess.setHelo(args[1]);
sess.resetMailTransaction(); sess.setHelo(args[1]);
@Override public void execute(String commandString, Session sess) throws IOException { String[] args = this.getArgs(commandString); if (args.length < 2) { sess.sendResponse("501 Syntax: HELO <hostname>"); return; } sess.resetMailTransaction(); sess.setHelo(args[1]); sess.sendResponse("250 " + sess.getServer().getHostName()); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { String[] args = this.getArgs(commandString); if (args.length < 2) { sess.sendResponse("501 Syntax: HELO <hostname>"); return; } sess.resetMailTransaction(); sess.setHelo(args[1]); sess.sendResponse("250 " + sess.getServer().getHostName()); } }
sess.resetMailTransaction(); throw ex; // Propagate this sess.resetMailTransaction(); sess.sendResponse(ex.getErrorResponse()); return;
sess.resetMailTransaction(); throw ex; // Propagate this sess.resetMailTransaction(); sess.sendResponse(ex.getErrorResponse()); return;