vmail 1.6.4 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -636,7 +636,6 @@ EOF
636
636
  log "- missing @current mail!"
637
637
  return nil
638
638
  end
639
- # user reply_template class
640
639
  reply_headers = Vmail::ReplyTemplate.new(@current_mail, @username, @name, replyall, @always_cc).reply_headers
641
640
  body = reply_headers.delete(:body)
642
641
  format_headers(reply_headers) + "\n\n\n" + body + signature
@@ -29,10 +29,9 @@ module Vmail
29
29
  end
30
30
 
31
31
  def primary_recipient
32
- reply_headers unless @orig_headers
33
32
  from = @orig_headers['from']
34
- reply_to = @orig_headers['reply-to']
35
- [ reply_to, from ].flatten.compact.map(&:to_s)[0]
33
+ reply_to = @mail.header['Reply-To']
34
+ @primary_recipient = (reply_to || from).to_s
36
35
  end
37
36
 
38
37
  def cc
@@ -44,7 +43,7 @@ module Vmail
44
43
  cc = cc.flatten.compact.
45
44
  select {|x| x !~ /#{@username}/}
46
45
  cc << @always_cc
47
- cc.join(', ')
46
+ cc.select {|x| x !~ /#{@primary_recipient}/}.join(', ')
48
47
  end
49
48
 
50
49
  def sender
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.6.4'
2
+ VERSION = '1.6.5'
3
3
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 6
8
- - 4
9
- version: 1.6.4
4
+ prerelease:
5
+ version: 1.6.5
10
6
  platform: ruby
11
7
  authors:
12
8
  - Daniel Choi
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-03-06 00:00:00 -05:00
13
+ date: 2011-04-20 00:00:00 -04:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,10 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 2
31
- - 12
32
24
  version: 2.2.12
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,10 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 6
46
- - 1
47
35
  version: 1.6.1
48
36
  type: :runtime
49
37
  version_requirements: *id002
@@ -111,40 +99,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
99
  requirements:
112
100
  - - ">="
113
101
  - !ruby/object:Gem::Version
114
- segments:
115
- - 1
116
- - 9
117
- - 0
118
102
  version: 1.9.0
119
103
  required_rubygems_version: !ruby/object:Gem::Requirement
120
104
  none: false
121
105
  requirements:
122
106
  - - ">="
123
107
  - !ruby/object:Gem::Version
124
- segments:
125
- - 0
126
108
  version: "0"
127
109
  requirements: []
128
110
 
129
111
  rubyforge_project: vmail
130
- rubygems_version: 1.3.7
112
+ rubygems_version: 1.6.1
131
113
  signing_key:
132
114
  specification_version: 3
133
115
  summary: A Vim interface to Gmail
134
- test_files:
135
- - test/address_quoter_test.rb
136
- - test/base64_test.rb
137
- - test/fixtures/euc-kr-header.eml
138
- - test/fixtures/euc-kr-html.eml
139
- - test/fixtures/google-affiliate.eml
140
- - test/fixtures/htmlbody.eml
141
- - test/fixtures/moleskine-html.eml
142
- - test/fixtures/reply-template-encoding-test.eml
143
- - test/fixtures/reply_all.eml
144
- - test/fixtures/rfc_part.eml
145
- - test/fixtures/textbody-nocontenttype.eml
146
- - test/fixtures/with-attachments.eml
147
- - test/message_formatter_test.rb
148
- - test/reply_template_test.rb
149
- - test/test_helper.rb
150
- - test/time_format_test.rb
116
+ test_files: []
117
+