From: wmorgan Date: Mon, 22 Jan 2007 05:30:06 +0000 (+0000) Subject: fixed up new header loading mechanism X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=ed9de82b65194cbe2dc15b14ec9af665b2ded2c4;p=sup fixed up new header loading mechanism git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@274 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/message.rb b/lib/sup/message.rb index 4e7d3ca..be2cb86 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -99,9 +99,7 @@ class Message @dirty = false @chunks = nil - raise ArgumentError, "need a header" unless opts[:header] - read_header opts[:header] - #read_header(opts[:header] || @source.load_header(@source_info)) + read_header(opts[:header] || @source.load_header(@source_info)) end def read_header header @@ -230,6 +228,7 @@ EOS end def content + load_from_source! [ from && "#{from.name} #{from.email}", to.map { |p| "#{p.name} #{p.email}" },