public boolean isAcceptable(ImapMessage message) {
return (message instanceof ExpungeResponse);
}
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
final ExpungeResponse expungeResponse = (ExpungeResponse) acceptableMessage;
final int messageSequenceNumber = expungeResponse.getMessageSequenceNumber();
composer.untagged().message(messageSequenceNumber).message(EXPUNGE).end();
}