commit d501297f7cc2776e086fa8c2ddb59567a55af570
parent f8989bae2cf6126690b2bcb978e1950021c3cb41
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sat, 8 Dec 2007 21:33:38 +0000
bugfix: to/cc not read correctly from index
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@745 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -313,7 +313,7 @@ EOS
"date" => Time.at(doc[:date].to_i),
"subject" => unwrap_subj(doc[:subject]),
"from" => doc[:from],
- "to" => doc[:to],
+ "to" => doc[:to].split(/\s+/).join(", "), # reformat
"message-id" => doc[:message_id],
"references" => doc[:refs].split(/\s+/).map { |x| "<#{x}>" }.join(" "),
}