what about this, then: Mime-Version: 1.0 plain text Mime-Version: 1.0 Mime-Version: 1.0 and result should be: Mime-Version: 1.0 plain text Mime-Version: 1.0 Content-Type: text/html Mime-Version: 1.0 Content-Type: text/html