In-memory MIME parser