Allow block for mail and fix text_part method