diff --git a/Rakefile b/Rakefile index 8c0a6fe..8f8885e 100644 --- a/Rakefile +++ b/Rakefile @@ -51,7 +51,7 @@ spec = Gem::Specification.new do |s| s.autorequire = 'msg' - s.add_dependency 'ruby-ole' + s.add_dependency 'ruby-ole', '>=1.2.1' end Rake::GemPackageTask.new(spec) do |p| diff --git a/lib/msg.rb b/lib/msg.rb index 8f0fd83..4d7974f 100755 --- a/lib/msg.rb +++ b/lib/msg.rb @@ -144,9 +144,9 @@ def populate_headers # of the ole name, or just leave it if we can't recips = recips_by_type[type] recips = (recips.sort_by { |r| r.obj.name[/\d{8}$/].hex } rescue recips) - # are you supposed to use ; or , to separate? + # switched to using , for separation, not ;. see issue #4 # recips.empty? is strange. i wouldn't have thought it possible, but it was right? - headers[type.to_s.sub(/^(.)/) { $1.upcase }] = [recips.join('; ')] unless recips.empty? + headers[type.to_s.sub(/^(.)/) { $1.upcase }] = [recips.join(', ')] unless recips.empty? end headers['Subject'] = [props.subject] if props.subject