vmail 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/reply_template.rb +1 -0
- data/lib/vmail/version.rb +1 -1
- metadata +3 -3
data/lib/vmail/reply_template.rb
CHANGED
@@ -20,6 +20,7 @@ module Vmail
|
|
20
20
|
date = @orig_headers['date'].is_a?(String) ? Time.parse(@orig_headers['date']) : @orig_headers['date']
|
21
21
|
quote_header = date ? "On #{date.strftime('%a, %b %d, %Y at %I:%M %p')}, #{sender} wrote:\n\n" : "#{sender} wrote:\n\n"
|
22
22
|
body = quote_header + formatter.process_body
|
23
|
+
body.encode("UTF-8", undef: :replace, replace: "??")
|
23
24
|
body.force_encoding("UTF-8")
|
24
25
|
body = body.gsub(/^(?=>)/, ">").gsub(/^(?!>)/, "> ")
|
25
26
|
{'from' => "#@name <#@username>", 'to' => primary_recipient, 'cc' => cc, 'subject' => subject, :body => body}
|
data/lib/vmail/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 1.5.
|
8
|
+
- 2
|
9
|
+
version: 1.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Choi
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-14 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|