Sha256: c10e52606849e567df7b3da932e8e74bd4b08f2e34da2797206d5e8a7f789d3f

Contents?: true

Size: 1.06 KB

Versions: 65

Compression:

Stored size: 1.06 KB

Contents

%%{
  # RFC 2045 Section 5.1: Content-Type Header Field
  # https://tools.ietf.org/html/rfc2045#section-5.1
  # Previously: https://tools.ietf.org/html/rfc1049#section-3
  machine rfc2045_content_type;
  alphtype int;

  include rfc5322_lexical_tokens "rfc5322_lexical_tokens.rl";

  token = 0x21..0x27 | 0x2a..0x2b | 0x2c..0x2e | 0x30..0x39 | 0x41..0x5a | 0x5e..0x7e;
  value = (quoted_string | (token -- '"' | 0x3d)+) >param_val_s %param_val_e;
  attribute = (token+) >param_attr_s %param_attr_e;
  parameter = CFWS? attribute "=" value CFWS?;

  ietf_token = token+;
  custom_x_token = 'x'i "-" token+;
  extension_token = ietf_token | custom_x_token;
  discrete_type = 'text'i | 'image'i | 'audio'i | 'video'i |
                  'application'i | extension_token;
  composite_type = 'message'i | 'multipart'i | extension_token;
  iana_token = token+;
  main_type = (discrete_type | composite_type) >main_type_s %main_type_e;
  sub_type = (extension_token | iana_token) >sub_type_s %sub_type_e;
  content_type = main_type "/" sub_type (((CFWS? ";"+) | CFWS) parameter CFWS?)*;
}%%

Version data entries

65 entries across 50 versions & 14 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/parsers/rfc2045_content_type.rl
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.1 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.1.rc2 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.0.1 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.0.1.rc1 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.0 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.0.rc3 lib/mail/parsers/rfc2045_content_type.rl
mail-2.8.0.rc2 lib/mail/parsers/rfc2045_content_type.rl
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl