deprecated warning for mail_handler patch