mail 2.7.0.rc2 → 2.7.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mail/message.rb +1 -1
- data/lib/mail/network/delivery_methods/sendmail.rb +6 -3
- data/lib/mail/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf567838569dac637ba3a39e28a647562f2c9c87
|
4
|
+
data.tar.gz: dd4bd65230f2cee83929dfbabc0f8a08855a0184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27af1901651b8c803f0abc0d91a0510bc2aa09efd96efa0fd6bcaaf7471e60a2bb7c866502aea2ae12e4e7540c00fe2150b66e259c2c48fa03d6cdd143c97b20
|
7
|
+
data.tar.gz: 530a1e8cee14dfc7b209263dab2d8e0b6956ffc57cb72596fc92a9c3f20b0cc45868897cdf9b324b316e2a63a71e686b88b1b9b83202fc5b7b4087e3f0ed5a26
|
data/lib/mail/message.rb
CHANGED
@@ -2001,7 +2001,7 @@ module Mail
|
|
2001
2001
|
|
2002
2002
|
def raw_source=(value)
|
2003
2003
|
value = value.dup.force_encoding(Encoding::BINARY) if RUBY_VERSION >= "1.9.1"
|
2004
|
-
@raw_source = value
|
2004
|
+
@raw_source = ::Mail::Utilities.to_crlf(value)
|
2005
2005
|
end
|
2006
2006
|
|
2007
2007
|
# see comments to body=. We take data and process it lazily
|
@@ -77,15 +77,18 @@ module Mail
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# The following is an adaptation of ruby 1.9.2's shellwords.rb file,
|
80
|
-
#
|
81
|
-
#
|
80
|
+
# with the following modifications:
|
81
|
+
#
|
82
|
+
# - Wraps in double quotes
|
83
|
+
# - Allows '+' to accept email addresses with them
|
84
|
+
# - Allows '~' as it is not unescaped in double quotes
|
82
85
|
def self.shellquote(address)
|
83
86
|
# Process as a single byte sequence because not all shell
|
84
87
|
# implementations are multibyte aware.
|
85
88
|
#
|
86
89
|
# A LF cannot be escaped with a backslash because a backslash + LF
|
87
90
|
# combo is regarded as line continuation and simply ignored. Strip it.
|
88
|
-
escaped = address.gsub(/([^A-Za-z0-9_\s
|
91
|
+
escaped = address.gsub(/([^A-Za-z0-9_\s\+\-.,:\/@~])/n, "\\\\\\1").gsub("\n", '')
|
89
92
|
%("#{escaped}")
|
90
93
|
end
|
91
94
|
end
|
data/lib/mail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.0.
|
4
|
+
version: 2.7.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikel Lindsaar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_mime
|