File: rfc2045_content_transfer_encoding.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 (13 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
%%{
  # RFC 2045 Section 6.1: Content-Transfer-Encoding Header Field
  # https://tools.ietf.org/html/rfc2045#section-6.1
  machine rfc2045_content_transfer_encoding;
  alphtype int;

  include rfc2045_content_type "rfc2045_content_type.rl";

  encoding = ('7bits' | '8bits' | '7bit' | '8bit' | 'binary' |
              'quoted-printable' | 'base64' | ietf_token |
              custom_x_token) >encoding_s %encoding_e;
  content_transfer_encoding = CFWS? encoding CFWS? ";"? CFWS?;
}%%