aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-01-05 14:42:45 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-01-05 14:42:45 +0000
commit19e192b2c6fd2edc49f86868f57e2a5f30c9f1b0 (patch)
tree3e8efabd1b3a07ea2af5523349ca45ee167f2af7 /app/models
parentb06195a428b5cb6c3e95b07c631e2f18febf05f0 (diff)
Ensure attachments have been parsed before generating cached extracts
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index a8498b6e8..20989d641 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -619,6 +619,7 @@ class IncomingMessage < ActiveRecord::Base
end
# Returns body text from main text part of email, converted to UTF-8
def get_main_body_text_internal
+ parse_raw_email!
main_part = get_main_body_text_part
return _convert_part_body_to_text(main_part)
end