ari/jobsworth — Issue #219: Incoming email error
Author: ari
Created: 2011-12-13 02:09:45+00:00
State: open

I don't have a copy of the original email, but this is what was sent in reply to the user who sent in an email with an attachment.

ish.com.au #5.0.0 smtp;/usr/squish/vendor/bundle/ruby/1.9/gems/railties-3.1.1/lib/rails/commands/runner.rb:49:in `eval': No such file or directory - /usr/squish/tmp/image001.jpg (Errno::ENOENT)from /usr/squish/app/models/mailman.rb:197:in `add_attachment'from /usr/squish/app/models/mailman.rb:187:in `block in save_attachments'from /usr/squish/app/models/mailman.rb:186:in `map'from /usr/squish/app/models/mailman.rb:186:in `save_attachments'from /usr/squish/app/models/mailman.rb:217:in `create_task_from_email'from /usr/squish/app/models/mailman.rb:106:in `receive'from /usr/squish/vendor/bundle/ruby/1.9/gems/actionmailer-3.1.1/lib/action_mailer/base.rb:421:in `block in receive'from /usr/squish/vendor/bundle/ruby/1.9/gems/activesupport-3.1.1/lib/active_support/notifications.rb:53:in `block in instrument'from /usr/squish/vendor/bundle/ruby/1.9/gems/activesupport-3.1.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'from /usr/squish/vendor/bundle/ruby/1.9/gems/activesupport-3.1.1/lib/acti

ve_support/notifications.rb:53:in `instrument'from /usr/squish/vendor/bundle/ruby/1.9/gems/actionmailer-3.1.1/lib/action_mailer/base.rb:418:in `receive'from /usr/squish/app/models/mailman.rb:10:in `receive'from (eval):1:in `'from /usr/squish/vendor/bundle/ruby/1.9/gems/railties-3.1.1/lib/rails/commands/runner.rb:49:in `eval'from /usr/squish/vendor/bundle/ruby/1.9/gems/railties-3.1.1/lib/rails/commands/runner.rb:49:in `'from /usr/squish/vendor/bundle/ruby/1.9/gems/railties-3.1.1/lib/rails/commands.rb:63:in `require'from /usr/squish/vendor/bundle/ruby/1.9/gems/railties-3.1.1/lib/rails/commands.rb:63:in `'from /usr/squish/script/rails:9:in `require'from /usr/squish/script/rails:9:in `

'>

1. Make sure any reply by email does NOT include the exception
2. Make sure any parsing error like this results in a properly logger.error in Rails so we can capture the error