Sha256: 9d86271edbf50ff3fafaea7f88c778a3b8de992e7565c7951045527fee4658b2

Contents?: true

Size: 748 Bytes

Versions: 4

Compression:

Stored size: 748 Bytes

Contents

module Mail
  grammar RFC2045

    rule tspecials
      "(" / ")" / "<" / ">" / "@" /
      "," / ";" / ":" / '\\' / "<" / ">" /
      "/" / "[" / "]" / "?" / "="
    end
    
    rule ietf_token
      "7bit" / "8bit" / "binary" /
      "quoted-printable" / "base64"
    end
    
    rule 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

4 entries across 4 versions & 1 rubygems

Version Path
mail-2.1.5.3 lib/mail/parsers/rfc2045.treetop
mail-2.1.5.2 lib/mail/parsers/rfc2045.treetop
mail-2.1.5.1 lib/mail/parsers/rfc2045.treetop
mail-2.1.5 lib/mail/parsers/rfc2045.treetop