mail 2.6.6.rc1 → 2.6.6
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/CHANGELOG.rdoc +4 -1
- data/README.md +6 -17
- data/lib/mail/network/delivery_methods/exim.rb +6 -10
- data/lib/mail/network/delivery_methods/sendmail.rb +6 -2
- data/lib/mail/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fffa789ce57e01eb58d470854eef55242eae6f9c
|
4
|
+
data.tar.gz: fa95a3e43e7c7b80972dd81989688ed00ef5e22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '06621968e5681c087041b046f1f52cb7316116bedf04e38ab4255118249142488f768fba638c6fc2b99eb69d15a6d84823383f073f33bc8b05a6b3be635417d7'
|
7
|
+
data.tar.gz: f890a870876c79ca6014c8cccc84af35834cfc79576a2032aeef5a6f34ff183661e5fd73796b4693de53c1a288059e7733e359e7f0252548fe8c49e657f5bc7f
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
== Version 2.6.6 -
|
1
|
+
== Version 2.6.6 - 2017-06-09 Jeremy Daer <jeremydaer@gmail.com>
|
2
2
|
|
3
3
|
Security:
|
4
4
|
* #1097 – SMTP security: prevent command injection via To/From addresses. (jeremy)
|
5
5
|
|
6
|
+
Bugs:
|
7
|
+
* #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
|
8
|
+
|
6
9
|
== Version 2.6.5 - 2017-04-26 Jeremy Daer <jeremydaer@gmail.com>
|
7
10
|
|
8
11
|
Features:
|
data/README.md
CHANGED
@@ -42,25 +42,14 @@ me a nice email :)
|
|
42
42
|
Compatibility
|
43
43
|
-------------
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
* ruby-2.0.0 [ x86_64 ]
|
51
|
-
* ruby-2.1.10 [ x86_64 ]
|
52
|
-
* ruby-2.2.6 [ x86_64 ]
|
53
|
-
* ruby-2.3.3 [ x86_64 ]
|
54
|
-
* ruby-head [ x86_64 ]
|
55
|
-
* jruby [ x86_64 ]
|
56
|
-
* jruby-9.1.6.0 [ x86_64 ]
|
57
|
-
* jruby-head [ x86_64 ]
|
58
|
-
* rbx-2 [ x86_64 ]
|
59
|
-
|
60
|
-
Testing a specific mime type (needed for 1.8.7 for example) can be done manually with:
|
45
|
+
Mail supports Ruby 1.8.7+, including JRuby and Rubinius.
|
46
|
+
|
47
|
+
Every Mail commit is tested by Travis on [all supported Ruby versions](https://github.com/mikel/mail/blob/master/.travis.yml).
|
48
|
+
|
49
|
+
Testing a specific version of mime-types (needed for Ruby 1.8.7, for example) can be done manually with:
|
61
50
|
|
62
51
|
```sh
|
63
|
-
BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile
|
52
|
+
BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile bundle && rake
|
64
53
|
```
|
65
54
|
|
66
55
|
Discussion
|
@@ -37,17 +37,13 @@ module Mail
|
|
37
37
|
#
|
38
38
|
# mail.deliver!
|
39
39
|
class Exim < Sendmail
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
DEFAULTS = {
|
41
|
+
:location => '/usr/sbin/exim',
|
42
|
+
:arguments => '-i -t'
|
43
|
+
}
|
44
44
|
|
45
|
-
def self.call(path, arguments, destinations,
|
46
|
-
|
47
|
-
io.puts ::Mail::Utilities.to_lf(mail.encoded)
|
48
|
-
io.flush
|
49
|
-
end
|
45
|
+
def self.call(path, arguments, destinations, encoded_message)
|
46
|
+
super path, arguments, nil, encoded_message
|
50
47
|
end
|
51
|
-
|
52
48
|
end
|
53
49
|
end
|
@@ -38,11 +38,15 @@ module Mail
|
|
38
38
|
#
|
39
39
|
# mail.deliver!
|
40
40
|
class Sendmail
|
41
|
+
DEFAULTS = {
|
42
|
+
:location => '/usr/sbin/sendmail',
|
43
|
+
:arguments => '-i'
|
44
|
+
}
|
45
|
+
|
41
46
|
attr_accessor :settings
|
42
47
|
|
43
48
|
def initialize(values)
|
44
|
-
self.settings =
|
45
|
-
:arguments => '-i' }.merge(values)
|
49
|
+
self.settings = self.class::DEFAULTS.merge(values)
|
46
50
|
end
|
47
51
|
|
48
52
|
def deliver!(mail)
|
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.6.6
|
4
|
+
version: 2.6.6
|
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-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -264,12 +264,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
264
|
version: '0'
|
265
265
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
266
|
requirements:
|
267
|
-
- - "
|
267
|
+
- - ">="
|
268
268
|
- !ruby/object:Gem::Version
|
269
|
-
version:
|
269
|
+
version: '0'
|
270
270
|
requirements: []
|
271
271
|
rubyforge_project:
|
272
|
-
rubygems_version: 2.6.
|
272
|
+
rubygems_version: 2.6.11
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: Mail provides a nice Ruby DSL for making, sending and reading emails.
|