lib/mandrill_dm/message.rb
def combine_extra_header_fields # rubocop:disable MethodLength
      %w(
        Reply-To
        X-MC-BccAddress
        X-MC-GoogleAnalytics
        X-MC-GoogleAnalyticsCampaign
        X-MC-Important
        X-MC-InlineCSS
        X-MC-IpPool
        X-MC-PreserveRecipients
        X-MC-ReturnPathDomain
        X-MC-SigningDomain
        X-MC-Subaccount
        X-MC-Track
        X-MC-TrackingDomain
        X-MC-URLStripQS
        X-MC-ViewContentLink
      ).each_with_object({}) do |field, headers|
        headers[field] = mail[field].to_s if mail[field]
      end
    end
# Returns a hash of extra headers (not complete)
Returns a hash of extra headers (not complete)
Returns a hash of extra headers ( not complete )
def combine_extra_header_fields 
      %w(
        Reply-To
        X-MC-BccAddress
        X-MC-GoogleAnalytics
        X-MC-GoogleAnalyticsCampaign
        X-MC-Important
        X-MC-InlineCSS
        X-MC-IpPool
        X-MC-PreserveRecipients
        X-MC-ReturnPathDomain
        X-MC-SigningDomain
        X-MC-Subaccount
        X-MC-Track
        X-MC-TrackingDomain
        X-MC-URLStripQS
        X-MC-ViewContentLink
      ).each_with_object({}) do |field, headers|
        headers[field] = mail[field].to_s if mail[field]
      end
    end
def combine_extra_header_fields %w( Reply-To X-MC-BccAddress X-MC-GoogleAnalytics X-MC-GoogleAnalyticsCampaign X-MC-Important X-MC-InlineCSS X-MC-IpPool X-MC-PreserveRecipients X-MC-ReturnPathDomain X-MC-SigningDomain X-MC-Subaccount X-MC-Track X-MC-TrackingDomain X-MC-URLStripQS X-MC-ViewContentLink ) . each_with_object ( { } ) do | field , headers | headers [ field ] = mail [ field ] . to_s if mail [ field ] end end
Returns a hash of extra headers (not complete)
Returns a hash of extra headers ( not complete )
# rubocop:disable MethodLength