public boolean isAcceptable(final ImapMessage message) {
return (message instanceof RecentResponse);
}
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
final RecentResponse recentResponse = (RecentResponse) acceptableMessage;
final int numberFlaggedRecent = recentResponse.getNumberFlaggedRecent();
composer.untagged().message(numberFlaggedRecent).message(RECENT).end();
}