]> git.cworth.org Git - sup/commitdiff
bugfix: to/cc not read correctly from index
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 21:33:38 +0000 (21:33 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 21:33:38 +0000 (21:33 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@745 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/index.rb

index c106bcdcc8a6e290e75830f7608cdbc5ed541963..63af29901b3ecc625a89fb2b9d97749d3e56d5c5 100644 (file)
@@ -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(" "),
     }