File: rfc5234_abnf_core_rules.rl

package info (click to toggle)
ruby-mail 2.8.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,704 kB
  • sloc: ruby: 73,709; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%%{
  # RFC 5234 B.1. Core Rules
  # https://tools.ietf.org/html/rfc5234#appendix-B.1
  machine rfc5234_abnf_core_rules;
  alphtype int;

  include rfc3629_utf8 "rfc3629_utf8.rl";

  LF = "\n";
  CR = "\r";
  CRLF = "\r\n";
  SP = " ";
  HTAB = "\t";
  WSP = SP | HTAB;
  DQUOTE = '"';
  DIGIT = [0-9];
  ALPHA = [a-zA-Z];

  # RFC6532 extension for UTF-8 content
  rfc5234_VCHAR = 0x21..0x7e;
  VCHAR = rfc5234_VCHAR | utf8_non_ascii;
}%%