public boolean isAcceptable(ImapMessage message) {
return message instanceof FlagsResponse;
}
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
final FlagsResponse flagsResponse = (FlagsResponse) acceptableMessage;
final Flags flags = flagsResponse.getFlags();
composer.untagged().flags(flags).end();
}