mail 2.7.0.rc2 → 2.7.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f88c2fe5a5eee5c8e1eafb55dc781c70b41c8e40
4
- data.tar.gz: ddbda463854308dffa531f1b50243ff6e58518ea
3
+ metadata.gz: bf567838569dac637ba3a39e28a647562f2c9c87
4
+ data.tar.gz: dd4bd65230f2cee83929dfbabc0f8a08855a0184
5
5
  SHA512:
6
- metadata.gz: f5d80a2185f9204421b432587024c3745758d51864b6462157d8c4ce538e7d18a92ae0d86e52033133e1a1367f2ea64488c11d448c8544d724dbac43e74e0072
7
- data.tar.gz: de7db5c6ea57774e63e38008b8ff6977d3a24ca6fe611a8b019ab1d8e45ff66dd345846cdca761da6a26e998773e11c2270598033561496d148243a77efcc8d7
6
+ metadata.gz: 27af1901651b8c803f0abc0d91a0510bc2aa09efd96efa0fd6bcaaf7471e60a2bb7c866502aea2ae12e4e7540c00fe2150b66e259c2c48fa03d6cdd143c97b20
7
+ data.tar.gz: 530a1e8cee14dfc7b209263dab2d8e0b6956ffc57cb72596fc92a9c3f20b0cc45868897cdf9b324b316e2a63a71e686b88b1b9b83202fc5b7b4087e3f0ed5a26
@@ -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
- # it is modified to include '+' in the allowed list to allow for
81
- # sendmail to accept email addresses as the sender with a + in them.
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\+\-.,:\/@])/n, "\\\\\\1").gsub("\n", '')
91
+ escaped = address.gsub(/([^A-Za-z0-9_\s\+\-.,:\/@~])/n, "\\\\\\1").gsub("\n", '')
89
92
  %("#{escaped}")
90
93
  end
91
94
  end
@@ -5,7 +5,7 @@ module Mail
5
5
  MAJOR = 2
6
6
  MINOR = 7
7
7
  PATCH = 0
8
- BUILD = 'rc2'
8
+ BUILD = 'rc3'
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
11
11
 
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.rc2
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-24 00:00:00.000000000 Z
11
+ date: 2017-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_mime