lib/vmail/reply_templating.rb in vmail-2.3.2 vs lib/vmail/reply_templating.rb in vmail-2.3.3
- old
+ new
@@ -50,10 +50,10 @@
else
[]
end
xs = xs.select {|x|
email = (x[/<([^>]+)>/, 1] || x)
- email !~ /#{reply_recipient}/ && email !~ /#{@always_cc}/
+ email !~ /#{reply_recipient}/ && (@always_cc ? (email !~ /#{@always_cc}/) : true)
}
if @always_cc
xs << @always_cc
end
xs.uniq.select {|x| x != reply_recipient }.join(', ')