Buggy code:
public class MessageBuilder { public static final int REPLY = 0 ; public static final int REPLY_ALL = 1 ; public static final int REPLY_MAILINGLIST = 2 ; public static final int REPLY_AS_ATTACHMENT = 3 ; public static final int FORWARD = 4 ; public static final int FORWARD_INLINE = 5 ; public static final int OPEN = 6 ; private static MessageBuilder instance ; public MessageBuilder ( ) { } public static MessageBuilder getInstance ( ) { } public static boolean isAlreadyReply ( String subject , String pattern ) { } private static String createReplySubject ( ColumbaHeader header ) { } private static String createForwardSubject ( ColumbaHeader header ) { } private static String createTo ( ColumbaHeader header ) { } private static String createToAll ( ColumbaHeader header ) { } private static String createToMailinglist ( ColumbaHeader header ) { } private static void createMailingListHeaderItems ( ColumbaHeader header , ComposerModel model ) { } private static AccountItem getAccountItem ( Header header ) { } private static String createBodyText ( MimePart mimePart ) throws IOException { } private static String createQuotedBodyText ( MimePart mimePart , boolean html ) throws IOException { } public void createMessage ( ColumbaMessage message , ComposerModel model , int operation ) throws IOException { ColumbaHeader header = ( ( ColumbaHeader ) ( message . getHeaderInterface ( ) ) ) ; MimePart bodyPart = message . getBodyPart ( ) ; if ( bodyPart != null ) { String charset = bodyPart . getHeader ( ) . getContentParameter ( "charset" ) ; if ( charset != null ) { model . setCharsetName ( charset ) ; } } if ( ( operation == ( MessageBuilder . FORWARD ) ) || ( operation == ( MessageBuilder . FORWARD_INLINE ) ) ) { model . setSubject ( MessageBuilder . createForwardSubject ( header ) ) ; } else { model . setSubject ( MessageBuilder . createReplySubject ( header ) ) ; } String to = null ; if ( operation == ( MessageBuilder . REPLY ) ) to = MessageBuilder . createTo ( header ) ; else if ( operation == ( MessageBuilder . REPLY_ALL ) ) to = MessageBuilder . createToAll ( header ) ; else if ( operation == ( MessageBuilder . REPLY_MAILINGLIST ) ) to = MessageBuilder . createToMailinglist ( header ) ; if ( to != null ) { model . setTo ( to ) ; addSenderToAddressbook ( to ) ; } if ( operation != ( MessageBuilder . FORWARD ) ) MessageBuilder . createMailingListHeaderItems ( header , model ) ; if ( ( operation != ( MessageBuilder . FORWARD ) ) && ( operation != ( MessageBuilder . FORWARD_INLINE ) ) ) { AccountItem accountItem = MessageBuilder . getAccountItem ( header . getHeader ( ) ) ; model . setAccountItem ( accountItem ) ; } if ( ( operation == ( MessageBuilder . REPLY_AS_ATTACHMENT ) ) || ( operation == ( MessageBuilder . FORWARD ) ) ) { XmlElement optionsElement = MailConfig . get ( "composer_options" ) . getElement ( "//options" ) ; XmlElement htmlElement = optionsElement . getElement ( "html" ) ; if ( htmlElement == null ) htmlElement = optionsElement . addSubElement ( "html" ) ; String enableHtml = htmlElement . getAttribute ( "enable" , "false" ) ; <START_BUG> model . setHtml ( new Boolean ( enableHtml ) . booleanValue ( ) ) ; <END_BUG> } else { MimeHeader bodyHeader = message . getBodyPart ( ) . getHeader ( ) ; if ( bodyHeader . getMimeType ( ) . getSubtype ( ) . equals ( "html" ) ) { model . setHtml ( true ) ; } else { model . setHtml ( false ) ; } } if ( ( operation == ( MessageBuilder . REPLY_AS_ATTACHMENT ) ) || ( operation == ( MessageBuilder . FORWARD ) ) ) { if ( ( message . getSource ( ) ) != null ) { MimeHeader mimeHeader = new MimeHeader ( ) ; mimeHeader . setMimeType ( new MimeType ( "message" , "rfc822" ) ) ; model . addMimePart ( new org . columba . ristretto . message . LocalMimePart ( mimeHeader , message . getSource ( ) ) ) ; } } else { String bodyText = MessageBuilder . createQuotedBodyText ( message . getBodyPart ( ) , model . isHtml ( ) ) ; if ( bodyText == null ) { bodyText = "[Error<seq2seq4repair_space>parsing<seq2seq4repair_space>bodytext]" ; } model . setBodyText ( bodyText ) ; } } public void createMessageFromTemplate ( ColumbaMessage message , ComposerModel model , StreamableMimePart templateBodypart , boolean htmlTemplate ) throws IOException { } public static void openMessage ( Source messagesource , ComposerModel model ) throws IOException , ParserException { } public void addSenderToAddressbook ( String sender ) { } }

Fix:
model . setHtml ( Boolean . valueOf ( enableHtml ) . booleanValue ( ) ) ;