aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/incoming_message.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index ae63e9db8..02d04b163 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -637,6 +637,9 @@ class IncomingMessage < ActiveRecord::Base
attachment.save!
attachments << attachment.id
end
+ # Reload to refresh newly created foi_attachments
+ self.reload
+
main_part = get_main_body_text_part
# we don't use get_main_body_text_internal, as we want to avoid charset
# conversions, since /usr/bin/uudecode needs to deal with those.