mail 2.5.5.rc1 → 2.5.5
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 +2 -1
 - data/Gemfile +21 -4
 - data/README.md +9 -11
 - data/lib/VERSION +1 -1
 - data/lib/mail/network/delivery_methods/exim.rb +6 -10
 - data/lib/mail/network/delivery_methods/sendmail.rb +6 -2
 - data/lib/mail/network/delivery_methods/smtp.rb +5 -9
 - 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: 483ee321c6ec26a7fb20deb57c50254f916c5055
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 49bbe456db7b901b8f9a17cc404ed6cdd4ac84f2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: bc79fcc391b2358f8aecd403453c934399a561bd2cf0c3cb32bf850815a6c99086c47104e0680a7d77a62585453bef8ca27d885f0345d102e0191a1f5354973d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: cd1ea707e1b61aa29bb452d3b2eaa7a245721b28d17448061cef63beff93c794f3a05d0c104afa79a9cb7026f0b20376f422b76747170d35fe72a59ed64e40e6
         
     | 
    
        data/CHANGELOG.rdoc
    CHANGED
    
    | 
         @@ -1,10 +1,11 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            == Version 2.5.5 -  
     | 
| 
      
 1 
     | 
    
         
            +
            == Version 2.5.5 - 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 
6 
     | 
    
         
             
            Bugs:
         
     | 
| 
       7 
7 
     | 
    
         
             
            * #633 – Cope with message parts that have an empty Content-Type (ThomasKoppensteiner, zeepeeare)
         
     | 
| 
      
 8 
     | 
    
         
            +
            * #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
         
     | 
| 
       8 
9 
     | 
    
         | 
| 
       9 
10 
     | 
    
         
             
            == Version 2.5.4 - Tue May 14 14:45:00 +1100 2013 Mikel Lindsaar <mikel@lindsaar.net>
         
     | 
| 
       10 
11 
     | 
    
         | 
    
        data/Gemfile
    CHANGED
    
    | 
         @@ -2,14 +2,31 @@ source 'https://rubygems.org' 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            gemspec
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            gem  
     | 
| 
      
 5 
     | 
    
         
            +
            if RUBY_VERSION < '1.9.3'
         
     | 
| 
      
 6 
     | 
    
         
            +
              gem 'activesupport', '< 4'
         
     | 
| 
      
 7 
     | 
    
         
            +
            elsif RUBY_VERSION < '2.2.2'
         
     | 
| 
      
 8 
     | 
    
         
            +
              gem 'activesupport', '< 5'
         
     | 
| 
      
 9 
     | 
    
         
            +
            end
         
     | 
| 
      
 10 
     | 
    
         
            +
            gem 'i18n', '< 0.7.0' if RUBY_VERSION < '1.9.3'
         
     | 
| 
       9 
11 
     | 
    
         
             
            gem "tlsmail" if RUBY_VERSION <= '1.8.6'
         
     | 
| 
      
 12 
     | 
    
         
            +
            gem "mime-types", "~> 1.16"
         
     | 
| 
      
 13 
     | 
    
         
            +
            gem "treetop", "~> 1.4.10"
         
     | 
| 
       10 
14 
     | 
    
         | 
| 
       11 
15 
     | 
    
         
             
            gem 'jruby-openssl', :platform => :jruby
         
     | 
| 
       12 
16 
     | 
    
         | 
| 
       13 
17 
     | 
    
         
             
            # For gems not required to run tests
         
     | 
| 
       14 
18 
     | 
    
         
             
            group :local_development, :test do
         
     | 
| 
      
 19 
     | 
    
         
            +
              gem 'rake', '> 0.8.7', '< 11.0.1'
         
     | 
| 
      
 20 
     | 
    
         
            +
              gem 'rdoc', '< 4.3' if RUBY_VERSION < '1.9.3'
         
     | 
| 
      
 21 
     | 
    
         
            +
              gem "rspec",      "~> 2.8.0"
         
     | 
| 
      
 22 
     | 
    
         
            +
              case
         
     | 
| 
      
 23 
     | 
    
         
            +
              when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
         
     | 
| 
      
 24 
     | 
    
         
            +
                # Skip it
         
     | 
| 
      
 25 
     | 
    
         
            +
              when RUBY_PLATFORM == 'java'
         
     | 
| 
      
 26 
     | 
    
         
            +
                # Skip it
         
     | 
| 
      
 27 
     | 
    
         
            +
              when RUBY_VERSION < '1.9'
         
     | 
| 
      
 28 
     | 
    
         
            +
                gem "ruby-debug"
         
     | 
| 
      
 29 
     | 
    
         
            +
              else
         
     | 
| 
      
 30 
     | 
    
         
            +
                # Skip it
         
     | 
| 
      
 31 
     | 
    
         
            +
              end
         
     | 
| 
       15 
32 
     | 
    
         
             
            end
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -42,17 +42,15 @@ me a nice email :) 
     | 
|
| 
       42 
42 
     | 
    
         
             
            Compatibility
         
     | 
| 
       43 
43 
     | 
    
         
             
            -------------
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
            * jruby-head [ x86_64 ]
         
     | 
| 
       55 
     | 
    
         
            -
            * rbx-2 [ x86_64 ]
         
     | 
| 
      
 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:
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
            ```sh
         
     | 
| 
      
 52 
     | 
    
         
            +
            BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile bundle && rake
         
     | 
| 
      
 53 
     | 
    
         
            +
            ```
         
     | 
| 
       56 
54 
     | 
    
         | 
| 
       57 
55 
     | 
    
         
             
            Discussion
         
     | 
| 
       58 
56 
     | 
    
         
             
            ----------
         
     | 
    
        data/lib/VERSION
    CHANGED
    
    
| 
         @@ -36,17 +36,13 @@ module Mail 
     | 
|
| 
       36 
36 
     | 
    
         
             
              #
         
     | 
| 
       37 
37 
     | 
    
         
             
              #   mail.deliver!
         
     | 
| 
       38 
38 
     | 
    
         
             
              class Exim < Sendmail
         
     | 
| 
       39 
     | 
    
         
            -
                 
     | 
| 
       40 
     | 
    
         
            -
                   
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
                 
     | 
| 
      
 39 
     | 
    
         
            +
                DEFAULTS = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                  :location   => '/usr/sbin/exim',
         
     | 
| 
      
 41 
     | 
    
         
            +
                  :arguments  => '-i -t'
         
     | 
| 
      
 42 
     | 
    
         
            +
                }
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
                def self.call(path, arguments, destinations,  
     | 
| 
       45 
     | 
    
         
            -
                   
     | 
| 
       46 
     | 
    
         
            -
                    io.puts mail.encoded.to_lf
         
     | 
| 
       47 
     | 
    
         
            -
                    io.flush
         
     | 
| 
       48 
     | 
    
         
            -
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                def self.call(path, arguments, destinations, encoded_message)
         
     | 
| 
      
 45 
     | 
    
         
            +
                  super path, arguments, nil, encoded_message
         
     | 
| 
       49 
46 
     | 
    
         
             
                end
         
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
47 
     | 
    
         
             
              end
         
     | 
| 
       52 
48 
     | 
    
         
             
            end
         
     | 
| 
         @@ -37,11 +37,15 @@ module Mail 
     | 
|
| 
       37 
37 
     | 
    
         
             
              #
         
     | 
| 
       38 
38 
     | 
    
         
             
              #   mail.deliver!
         
     | 
| 
       39 
39 
     | 
    
         
             
              class Sendmail
         
     | 
| 
      
 40 
     | 
    
         
            +
                DEFAULTS = {
         
     | 
| 
      
 41 
     | 
    
         
            +
                  :location   => '/usr/sbin/sendmail',
         
     | 
| 
      
 42 
     | 
    
         
            +
                  :arguments  => '-i'
         
     | 
| 
      
 43 
     | 
    
         
            +
                }
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
       40 
45 
     | 
    
         
             
                attr_accessor :settings
         
     | 
| 
       41 
46 
     | 
    
         | 
| 
       42 
47 
     | 
    
         
             
                def initialize(values)
         
     | 
| 
       43 
     | 
    
         
            -
                  self.settings =  
     | 
| 
       44 
     | 
    
         
            -
                                    :arguments      => '-i' }.merge(values)
         
     | 
| 
      
 48 
     | 
    
         
            +
                  self.settings = self.class::DEFAULTS.merge(values)
         
     | 
| 
       45 
49 
     | 
    
         
             
                end
         
     | 
| 
       46 
50 
     | 
    
         | 
| 
       47 
51 
     | 
    
         
             
                def deliver!(mail)
         
     | 
| 
         @@ -129,15 +129,11 @@ module Mail 
     | 
|
| 
       129 
129 
     | 
    
         
             
                    openssl_verify_mode = "OpenSSL::SSL::VERIFY_#{openssl_verify_mode.upcase}".constantize
         
     | 
| 
       130 
130 
     | 
    
         
             
                  end
         
     | 
| 
       131 
131 
     | 
    
         | 
| 
       132 
     | 
    
         
            -
                   
     | 
| 
       133 
     | 
    
         
            -
             
     | 
| 
       134 
     | 
    
         
            -
                   
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
     | 
    
         
            -
                    context.ca_path = settings[:ca_path] if settings[:ca_path]
         
     | 
| 
       138 
     | 
    
         
            -
                    context.ca_file = settings[:ca_file] if settings[:ca_file]
         
     | 
| 
       139 
     | 
    
         
            -
                    context
         
     | 
| 
       140 
     | 
    
         
            -
                  end
         
     | 
| 
      
 132 
     | 
    
         
            +
                  context = Net::SMTP.default_ssl_context
         
     | 
| 
      
 133 
     | 
    
         
            +
                  context.verify_mode = openssl_verify_mode
         
     | 
| 
      
 134 
     | 
    
         
            +
                  context.ca_path = settings[:ca_path] if settings[:ca_path]
         
     | 
| 
      
 135 
     | 
    
         
            +
                  context.ca_file = settings[:ca_file] if settings[:ca_file]
         
     | 
| 
      
 136 
     | 
    
         
            +
                  context
         
     | 
| 
       141 
137 
     | 
    
         
             
                end
         
     | 
| 
       142 
138 
     | 
    
         
             
              end
         
     | 
| 
       143 
139 
     | 
    
         
             
            end
         
     | 
    
        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.5.5 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.5.5
         
     | 
| 
       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
         
     | 
| 
         @@ -261,12 +261,12 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       261 
261 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       262 
262 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       263 
263 
     | 
    
         
             
              requirements:
         
     | 
| 
       264 
     | 
    
         
            -
              - - " 
     | 
| 
      
 264 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       265 
265 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       266 
     | 
    
         
            -
                  version:  
     | 
| 
      
 266 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       267 
267 
     | 
    
         
             
            requirements: []
         
     | 
| 
       268 
268 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       269 
     | 
    
         
            -
            rubygems_version: 2.6. 
     | 
| 
      
 269 
     | 
    
         
            +
            rubygems_version: 2.6.11
         
     | 
| 
       270 
270 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       271 
271 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       272 
272 
     | 
    
         
             
            summary: Mail provides a nice Ruby DSL for making, sending and reading emails.
         
     |