vmail 1.9.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/reply_templating.rb +6 -2
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
@@ -45,11 +45,15 @@ module Vmail
|
|
45
45
|
def reply_cc
|
46
46
|
return nil unless (@replyall || @always_cc)
|
47
47
|
xs = if @replyall
|
48
|
-
((current_mail['cc'] && current_mail['cc'].decoded) || "") .split(/,\s*/)
|
48
|
+
((current_mail['cc'] && current_mail['cc'].decoded) || "") .split(/,\s*/) + ((current_mail['to'] && current_mail['to'].decoded) || "") .split(/,\s*/)
|
49
49
|
else
|
50
50
|
[]
|
51
51
|
end
|
52
|
-
|
52
|
+
xs = xs.select {|x|
|
53
|
+
email = (x[/<([^>]+)>/, 1] || x)
|
54
|
+
email !~ /#{reply_recipient}/ && email !~ /#{@always_cc}/
|
55
|
+
}
|
56
|
+
if @always_cc
|
53
57
|
xs << @always_cc
|
54
58
|
end
|
55
59
|
xs.uniq.select {|x| x != reply_recipient }.join(', ')
|
data/lib/vmail/version.rb
CHANGED