Skip to content

Instantly share code, notes, and snippets.

@anabelle
Created January 21, 2012 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anabelle/1653892 to your computer and use it in GitHub Desktop.
Save anabelle/1653892 to your computer and use it in GitHub Desktop.
rescue_from 'Emailer::Incoming::MissingInfo', 'Emailer::Incoming::Error' do |exception|
logger.warn "[Emailer::Incoming] #{exception.message}"
EmailBounce.bounce_once_per_day(exception) unless params[:from].blank?
response.content_type = Mime::TEXT
render :text => exception.message, :status => 200
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment