added update_mail_as_processed method