Sha256: 628f63faeff481595c9fff90c98b7f26beb9b611dd083fc262a8158e0621518b

Contents?: true

Size: 536 Bytes

Versions: 20

Compression:

Stored size: 536 Bytes

Contents

module Mail

  class Exim < Sendmail

    def deliver!(mail)
      envelope_from = mail.return_path || mail.sender || mail.from_addrs.first
      return_path = "-f \"#{envelope_from.to_s.shellescape}\"" if envelope_from
      arguments = [settings[:arguments], return_path].compact.join(" ")
      self.class.call(settings[:location], arguments, mail)
    end

    def self.call(path, arguments, mail)
      IO.popen("#{path} #{arguments}", "w+") do |io|
        io.puts mail.encoded.to_lf
        io.flush
      end
    end

  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.6.1 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.6.0 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.5.4 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.5.3 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.5.2 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.5.1 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.5.0 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.4.1 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.4.0 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.5 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.4 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.3 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.2 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.1 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.3.0 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.2.1 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
challah-0.2.0 vendor/bundle/gems/mail-2.4.1/lib/mail/network/delivery_methods/exim.rb
mail-2.4.1 lib/mail/network/delivery_methods/exim.rb
mail-2.4.0 lib/mail/network/delivery_methods/exim.rb