lib/vmail/reply_templating.rb in vmail-2.5.7 vs lib/vmail/reply_templating.rb in vmail-2.5.8

- old
+ new

@@ -50,10 +50,12 @@ else [] end xs = xs.select {|x| email = (x[/<([^>]+)>/, 1] || x) - email !~ /#{reply_recipient}/ && (@always_cc ? (email !~ /#{@always_cc}/) : true) + email !~ /#{reply_recipient}/ \ + && email !~ /#@username/ \ + && (@always_cc ? (email !~ /#{@always_cc}/) : true) } if @always_cc xs << @always_cc end xs.uniq.select {|x| x != reply_recipient }.join(', ')