decodes mime messages, supports streaming