Sha256: 5fd95afaf802b70bd366b9ed4099590c958971c921a088b0113464fccd8e3c7a

Contents?: true

Size: 697 Bytes

Versions: 5

Compression:

Stored size: 697 Bytes

Contents

module Mail
  grammar RFC2045

    rule tspecials
      "(" / ")" / "<" / ">" / "@" /
      "," / ";" / ":" / '\\' / "<" / ">" /
      "/" / "[" / "]" / "?" / "="
    end
    
    rule ietf_token
      token+
    end
    
    rule custom_x_token
      [xX] "-" token+
    end

    rule iana_token
      token+
#     <A publicly-defined extension token. Tokens
#     of this form must be registered with IANA
#     as specified in RFC 2048.>
    end
    
    rule token
      [\x21-\x27] /       # any (US-ASCII) CHAR 
      [\x2a-\x2b] /       # except SPACE, 
      [\x2c-\x2e] /       # CTLs,
      [\x30-\x39] /       # or tspecials
      [\x41-\x5a] /
      [\x5e-\x7e]
    end
    
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
mail-2.5.5 lib/mail/parsers/rfc2045.treetop
mail-2.5.5.rc1 lib/mail/parsers/rfc2045.treetop
challah-1.0.0 vendor/bundle/gems/mail-2.5.4/lib/mail/parsers/rfc2045.treetop
swipe-rails-0.0.5 vendor/bundle/gems/mail-2.5.4/lib/mail/parsers/rfc2045.treetop
mail-2.5.4 lib/mail/parsers/rfc2045.treetop