response.append( fetchElement.getResponseName() );
response.append( SP );
if ( fetchElement == FetchElement.FLAGS ) {
MessageFlags flags = message.getFlags();
response.append( flags.format() );
}
else if ( fetchElement == FetchElement.INTERNALDATE ) {
// TODO format properly
String internalDate = message.getAttributes().getInternalDateAsString();
response.append( "\"" );