Sha256: 995c85d02c1506aed3d64944cb87dc6327319147acb85da811274d7edf1d3aca

Contents?: true

Size: 1.13 KB

Versions: 22

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true
module Mail
  module Parsers

    # Low-level ragel based parsers
    require 'mail/parsers/ragel'

    AddressListStruct = Struct.new(:addresses, :group_names, :error)
    AddressStruct = Struct.new(:raw, :domain, :comments, :local,
                             :obs_domain_list, :display_name, :group, :error)
    ContentDispositionStruct = Struct.new(:disposition_type, :parameters, :error)
    ContentLocationStruct = Struct.new(:location, :error)
    ContentTransferEncodingStruct = Struct.new(:encoding, :error)
    ContentTypeStruct = Struct.new(:main_type, :sub_type, :parameters, :error)
    DateTimeStruct = Struct.new(:date_string, :time_string, :error)
    EnvelopeFromStruct = Struct.new(:address, :ctime_date, :error)
    MessageIdsStruct = Struct.new(:message_ids, :error)
    MimeVersionStruct = Struct.new(:major, :minor, :error)
    PhraseListsStruct = Struct.new(:phrases, :error)
    ReceivedStruct = Struct.new(:date, :time, :info, :error)

    require 'mail/parsers/ragel/parser_info'
    Ragel::FIELD_PARSERS.each do |field_parser|
      require "mail/parsers/#{field_parser}_parser"
    end
  end
end

Version data entries

22 entries across 20 versions & 6 rubygems

Version Path
tdiary-5.0.6 vendor/bundle/gems/mail-2.6.6/lib/mail/parsers.rb
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.6/lib/mail/parsers.rb
mail-2.6.6 lib/mail/parsers.rb
mail-2.6.6.rc1 lib/mail/parsers.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/mail-2.6.5/lib/mail/parsers.rb
mail-2.6.5 lib/mail/parsers.rb
mail-2.6.5.rc1 lib/mail/parsers.rb
tdiary-5.0.4 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers.rb
abaci-0.3.0 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb
tdiary-5.0.2 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb
tdiary-5.0.1 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers.rb