attach inbox @before_request