<?php
/*
Plugin Name: Mime
Version: 1.0
Plugin URI: http://www.uberdose.com/wordpress/mime-type-plugin.html
Description: Switches wpautop off in cases where the post content is pure HTML.
Author: Dirk Zimmermann
Author URI: http://www.uberdose.com
*/

function mime($text) {
    global 
$post_meta_cache$post;
    if (
is_array($post_meta_cache[$post->ID]['mime_type'])) {
        
$mimeType $post_meta_cache[$post->ID]['mime_type'][0];
    }
    if (isset(
$mimeType) && $mimeType == 'text/html') {
        return 
$text;
    } else {
        return 
wpautop($text);
    }
}

remove_filter('the_content''wpautop');

add_filter('the_content''mime'6);

?>