diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-29 19:13:34 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-29 19:13:34 +0000 |
commit | bbaa789b6c417300fbdace70ca93d7099c68b718 (patch) | |
tree | f15eb4eef728701dceddffe440a609302cac8d8d /app/models/incoming_message.rb | |
parent | d4c29c07ae46784ea1d564b749fb709c94a913f9 (diff) | |
parent | f6cd280bbfafa2151ededb8280407686fb73e8a7 (diff) |
Merge branch 'release/0.5' into wdtk
Diffstat (limited to 'app/models/incoming_message.rb')
-rw-r--r-- | app/models/incoming_message.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 91f1cf7c0..131970ba6 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -127,6 +127,9 @@ class IncomingMessage < ActiveRecord::Base # The following fields may be absent; we treat them as cached # values in case we want to regenerate them (due to mail # parsing bugs, etc). + if self.raw_email.nil? + raise "Incoming message id=#{id} has no raw_email" + end if (!force.nil? || self.last_parsed.nil?) ActiveRecord::Base.transaction do self.extract_attachments! |