diff options
author | francis <francis> | 2008-02-13 13:47:50 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-13 13:47:50 +0000 |
commit | 96f46d43e3209e60eea6f11b1aed19091f4e33a4 (patch) | |
tree | 7c8bc579c78aed73a963192df63bd438bd1c2761 | |
parent | 3c6db037ee06f0e20c72d4a6cd207571b59ee083 (diff) |
Oops! Failed to loop over the right thing, so any recursive attachments weren't working.
-rw-r--r-- | app/models/incoming_message.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 9c8d2fca9..e2271ae5e 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -18,7 +18,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.38 2008-02-06 09:41:44 francis Exp $ +# $Id: incoming_message.rb,v 1.39 2008-02-13 13:47:50 francis Exp $ # TODO @@ -162,7 +162,7 @@ class IncomingMessage < ActiveRecord::Base if curr_mail.sub_type == 'alternative' # Choose best part from alternatives best_part = nil - self.mail.parts.each do |m| + curr_mail.parts.each do |m| # Take the first one, or the last text/plain one # XXX - could do better! if not best_part |