before_search hook & search_result hook & mailer