All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.subethamail.smtp.command.ResetCommand Maven / Gradle / Ivy

package org.subethamail.smtp.command;

import java.io.IOException;

import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
import org.subethamail.smtp.server.Session;

/**
 * @author Ian McFarland <[email protected]>
 * @author Jon Stevens
 */
public class ResetCommand extends BaseCommand
{
	public ResetCommand()
	{
		super("RSET", "Resets the system.");
	}

	@Override
	public void execute(String commandString, ConnectionContext context) throws IOException
	{
		Session session = context.getSession();
		session.reset(true);

		context.sendResponse("250 Ok");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy