carlos / platform Public

mailer: one encoded-text check on every header field (review round 1 P1, P2)

Fable's round 1 of "the mailer and SES read the same header block":

- P1: encoded words are checked by the mailer's own strict decoder, not
  mime's. The charset must be on an allowlist where a C0 byte always
  means C0 (utf-8, us-ascii, iso-8859-*, windows-1250..8, iso-2022-jp,
  shift_jis, euc-*, gb2312, gbk, big5, koi8-*), so UTF-7 (+AA0ACg-) and
  EBCDIC (LF is 0x25: cp037, IBM037, IBM500) are refused with every
  other charset. A word with whitespace in it does not decode and is
  refused, and anything still shaped like a word once the words are
  taken out is refused.
- P2: the check runs on every header field, not six: Resent-From,
  Return-Path, Comments, List-Id, a Content-Type name= and the rest. RFC
  2231 extended parameters (filename*=utf-8''...) get the same check.
- P3: ESC is allowed per word, only in ISO-2022-JP; C1 is refused in
  ISO-8859-* bytes and UTF-8 runes; UTF-16 is off the allowlist. gb18030
  is left off too: it can encode NEL and U+2028.
- P3: a recipient holding "=?" is refused; addrSpec's parse-back check
  has a test (net/mail's quoting drops a CR).

Census: the internal/mailer envelope is re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 4569c7a8b2c58fc8f4a6c2df5d383f215bbd12d2 parent 832d34e
6 files changed, +294 −59
  • internal/mailer/encoded.go +231 −0
  • internal/mailer/hygiene.go +9 −55
  • internal/mailer/hygiene_test.go +32 −1
  • internal/mailer/send.go +4 −2
  • internal/mailer/send_test.go +17 −0
  • internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv +1 −1
diff --git a/internal/mailer/encoded.go b/internal/mailer/encoded.go
new file mode 100644
index 000000000..7ac2c962e
--- /dev/null
+++ b/internal/mailer/encoded.go
@@ -0,0 +1,231 @@
+package mailer
+
+import (
+ "encoding/base64"
+ "regexp"
+ "strings"
+ "unicode/utf8"
+)
+
+// The encoded text a header field may carry, checked the same way in every
+// field (Task 6 review, round 1 P1 and P2): RFC 2047 encoded words, which a
+// reader decodes for display names, subjects and more, and RFC 2231
+// extended parameters (name*=utf-8''...), which a MIME reader decodes for
+// file names. The mailer does not decode a message for SES; it refuses one
+// a reader could decode into a line break, so no reader that decodes and
+// writes the header out again can be handed a new field.
+//
+// The check is byte-wise, after the transfer encoding (B, Q or %XX) only,
+// so it needs no charset tables. That is sound only for a charset in which
+// a C0 byte always means a C0 character, which is why the charsets are an
+// allowlist (encodedCharset): UTF-7 (+AA0-) and EBCDIC (LF is 0x25) write
+// a line break with no CR or LF byte, and are refused with every other
+// charset not listed.
+
+// encodedWordShape is anything shaped like an encoded word: "=?", a
+// charset, "?", an encoding, "?", text, "?=". Whitespace is allowed
+// anywhere in it, though a well-formed word has none: a lenient reader
+// may still decode one that has, and such a word is refused by its
+// decoding failing here.
+var encodedWordShape = regexp.MustCompile(`=\?[^?]*\?[^?]*\?.*?\?=`)
+
+// cleanFieldValue reports whether an unfolded header field value carries
+// only clean encoded text: every encoded word decodes cleanly
+// (cleanEncodedWord), nothing shaped like one is left once they are taken
+// out, and every RFC 2231 extended parameter decodes cleanly. A value with
+// neither "=?" nor "*=" has none, and is clean.
+func cleanFieldValue(v string) bool {
+ if strings.Contains(v, "=?") {
+ for _, w := range encodedWordShape.FindAllString(v, -1) {
+ if !cleanEncodedWord(w) {
+ return false
+ }
+ }
+ rest := encodedWordShape.ReplaceAllString(v, " ")
+ if i := strings.Index(rest, "=?"); i >= 0 && strings.Contains(rest[i+2:], "?=") {
+ return false
+ }
+ }
+ if strings.Contains(v, "*=") && !cleanExtendedParams(v) {
+ return false
+ }
+ return true
+}
+
+// cleanEncodedWord reports whether one encoded word ("=?cs?e?text?=") is in
+// an allowed charset (an RFC 2231 language suffix, "*en", is dropped), is
+// B or Q, decodes strictly, and decodes to clean bytes in that charset.
+func cleanEncodedWord(w string) bool {
+ parts := strings.SplitN(w[2:len(w)-2], "?", 3)
+ if len(parts) != 3 {
+ return false
+ }
+ cs, _, _ := strings.Cut(strings.ToLower(parts[0]), "*")
+ if !encodedCharset(cs) {
+ return false
+ }
+ var raw []byte
+ switch parts[1] {
+ case "b", "B":
+ b, err := base64.StdEncoding.DecodeString(parts[2])
+ if err != nil {
+ return false
+ }
+ raw = b
+ case "q", "Q":
+ b, ok := decodeQ(parts[2])
+ if !ok {
+ return false
+ }
+ raw = b
+ default:
+ return false
+ }
+ return cleanDecoded(raw, cs)
+}
+
+// encodedCharset is the allowlist: charsets in which every byte below 0x20
+// is the C0 control of that value and stands for nothing else, so a
+// byte-wise check sees every line break. Lowercased.
+func encodedCharset(cs string) bool {
+ switch cs {
+ case "utf-8", "us-ascii", "iso-2022-jp", "shift_jis", "big5", "gb2312", "gbk":
+ return true
+ }
+ if rest, ok := strings.CutPrefix(cs, "windows-125"); ok {
+ return len(rest) == 1 && rest[0] >= '0' && rest[0] <= '8'
+ }
+ for _, p := range []string{"iso-8859-", "euc-", "koi8-"} {
+ if rest, ok := strings.CutPrefix(cs, p); ok {
+ return rest != "" && strings.Trim(rest, "abcdefghijklmnopqrstuvwxyz0123456789") == ""
+ }
+ }
+ return false
+}
+
+// decodeQ is RFC 2047's Q decoding, strictly: "_" is a space, "=XX" is a
+// byte in hex, and every other character is printable ASCII other than
+// "?", "=" and space.
+func decodeQ(text string) ([]byte, bool) {
+ out := make([]byte, 0, len(text))
+ for i := 0; i < len(text); i++ {
+ switch c := text[i]; {
+ case c == '_':
+ out = append(out, ' ')
+ case c == '=':
+ if i+2 >= len(text) {
+ return nil, false
+ }
+ b, ok := unhex(text[i+1], text[i+2])
+ if !ok {
+ return nil, false
+ }
+ out = append(out, b)
+ i += 2
+ case c > ' ' && c <= '~' && c != '?':
+ out = append(out, c)
+ default:
+ return nil, false
+ }
+ }
+ return out, true
+}
+
+func unhex(a, b byte) (byte, bool) {
+ h, ok1 := hexDigit(a)
+ l, ok2 := hexDigit(b)
+ return h<<4 | l, ok1 && ok2
+}
+
+func hexDigit(c byte) (byte, bool) {
+ switch {
+ case c >= '0' && c <= '9':
+ return c - '0', true
+ case c >= 'a' && c <= 'f':
+ return c - 'a' + 10, true
+ case c >= 'A' && c <= 'F':
+ return c - 'A' + 10, true
+ }
+ return 0, false
+}
+
+// cleanDecoded reports whether decoded bytes in charset cs hold no control
+// character. Every charset: no C0 byte but tab, and no DEL; ESC only in
+// ISO-2022-JP, whose shifts are written with it. ISO-8859-*: no byte in
+// 0x80-0x9f, its C1 controls (NEL is 0x85). UTF-8: no C1 control and no
+// line or paragraph separator (U+2028, U+2029). The other charsets on the
+// allowlist encode none of those.
+func cleanDecoded(raw []byte, cs string) bool {
+ for _, b := range raw {
+ switch {
+ case b == '\t', b == 0x1b && cs == "iso-2022-jp":
+ case b < 0x20, b == 0x7f:
+ return false
+ case b >= 0x80 && b <= 0x9f && strings.HasPrefix(cs, "iso-8859-"):
+ return false
+ }
+ }
+ if cs == "utf-8" {
+ for s := string(raw); s != ""; {
+ r, n := utf8.DecodeRuneInString(s)
+ if (r >= 0x80 && r <= 0x9f) || r == 0x2028 || r == 0x2029 {
+ return false
+ }
+ s = s[n:]
+ }
+ }
+ return true
+}
+
+// extendedParam is an RFC 2231 extended parameter: name*= or name*N*=,
+// then charset'language'value, the value percent-encoded. A continuation
+// (name*1*=) has no charset of its own; it is decoded in the charset of
+// the parameter it continues, and in us-ascii when none is seen.
+var extendedParam = regexp.MustCompile(`([A-Za-z0-9!#$&+.^_` + "`" + `|~-]+)\*(?:(\d+)\*)?=\s*"?([^;"\s]*)`)
+
+// cleanExtendedParams reports whether every RFC 2231 extended parameter in
+// a field value decodes strictly (each "%" starts two hex digits), in an
+// allowed charset, to clean bytes (cleanDecoded).
+func cleanExtendedParams(v string) bool {
+ charsets := map[string]string{} // parameter name -> charset of its first section
+ for _, m := range extendedParam.FindAllStringSubmatch(v, -1) {
+ name, section, value := strings.ToLower(m[1]), m[2], m[3]
+ cs, ok := charsets[name]
+ if section == "" || section == "0" {
+ parts := strings.SplitN(value, "'", 3)
+ if len(parts) != 3 {
+ return false
+ }
+ cs, value = strings.ToLower(parts[0]), parts[2]
+ if cs == "" {
+ cs = "us-ascii"
+ }
+ charsets[name] = cs
+ } else if !ok {
+ cs = "us-ascii"
+ }
+ if !encodedCharset(cs) {
+ return false
+ }
+ raw := make([]byte, 0, len(value))
+ for i := 0; i < len(value); i++ {
+ if value[i] != '%' {
+ raw = append(raw, value[i])
+ continue
+ }
+ if i+2 >= len(value) {
+ return false
+ }
+ b, ok := unhex(value[i+1], value[i+2])
+ if !ok {
+ return false
+ }
+ raw = append(raw, b)
+ i += 2
+ }
+ if !cleanDecoded(raw, cs) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/internal/mailer/hygiene.go b/internal/mailer/hygiene.go
index 81567786e..d961d92d6 100644
--- a/internal/mailer/hygiene.go
+++ b/internal/mailer/hygiene.go
@@ -3,9 +3,6 @@ package mailer
import (
"bytes"
"errors"
- "io"
- "mime"
- "regexp"
"strings"
)
@@ -52,21 +49,21 @@ var errHeaderSyntax = errors.New("mailer: malformed header block")
// keys as "From ", are refused rather than guessed at;
// - a line longer than 998 characters before its line ending (RFC 5322
// §2.1.1), which a relay may fold or cut where it likes (Task 6 review);
-// - in From, Sender, Reply-To, To, Cc or Subject, an RFC 2047 encoded
-// word (B or Q) that does not decode, or that decodes to a control
-// character: CR, LF, NUL and the rest (cleanEncodedWords). A reader
-// that decodes the display name and writes it out again would
-// otherwise write the decoded line break as a new header field.
+// - in any field, an RFC 2047 encoded word, or an RFC 2231 extended
+// parameter, that does not decode, is in a charset outside the
+// allowlist, or decodes to a control character: CR, LF, NUL and the
+// rest (cleanFieldValue, encoded.go). A reader that decodes it and
+// writes it out again would otherwise write the decoded line break as
+// a new header field.
func headerBlock(raw []byte) ([]byte, error) {
header, _, ok := splitHeader(raw)
if !ok {
return nil, errNoSeparator
}
first := true
- // The field being read, by lowercased name, and its unfolded value.
- var name string
+ // The unfolded value of the field being read.
var value []byte
- field := func() bool { return !decodedFields[name] || cleanEncodedWords(string(value)) }
+ field := func() bool { return cleanFieldValue(string(value)) }
for i := 0; i < len(header); {
j := bytes.IndexByte(header[i:], '\n')
line := bytes.TrimSuffix(header[i:i+j], []byte{'\r'})
@@ -94,7 +91,7 @@ func headerBlock(raw []byte) ([]byte, error) {
return nil, errHeaderSyntax
}
rest = line[c+1:]
- name, value = strings.ToLower(string(line[:c])), append([]byte(nil), rest...)
+ value = append([]byte(nil), rest...)
}
for _, b := range rest {
if (b < 0x20 && b != '\t') || b == 0x7f {
@@ -112,49 +109,6 @@ func headerBlock(raw []byte) ([]byte, error) {
// maxLine is RFC 5322 §2.1.1's limit on a line, without its CRLF.
const maxLine = 998
-// encodedWord is the shape of an RFC 2047 encoded word, B or Q, in any
-// case: what is left of one after decoding is one that did not decode.
-var encodedWord = regexp.MustCompile(`=\?[^?\s]+\?[bBqQ]\?[^?\s]*\?=`)
-
-// decodedFields are the header fields whose encoded words a reader is
-// known to decode (RFC 2047 §5): the address fields' display names, and
-// the subject. Lowercased.
-var decodedFields = map[string]bool{"from": true, "sender": true, "reply-to": true, "to": true, "cc": true, "subject": true}
-
-// cleanEncodedWords reports whether every RFC 2047 encoded word in an
-// unfolded field value decodes, B or Q, and decodes to no control
-// character: no C0 control but tab, no DEL, no C1 control and no Unicode
-// line or paragraph separator. A charset Go does not know is decoded as
-// its raw bytes, so a CR, LF or NUL in it is still seen; ESC is allowed in
-// an ISO-2022 charset, whose shifts are written with it. A word that does
-// not decode (mime leaves it as it was) is refused too: a lenient reader
-// may decode it, skipping what Go would not. A value with no "=?" has no
-// encoded word, and is clean.
-func cleanEncodedWords(v string) bool {
- if !strings.Contains(v, "=?") {
- return true
- }
- iso2022 := false
- d := mime.WordDecoder{CharsetReader: func(charset string, in io.Reader) (io.Reader, error) {
- if strings.HasPrefix(strings.ToLower(charset), "iso-2022-") {
- iso2022 = true
- }
- return in, nil
- }}
- text, err := d.DecodeHeader(v)
- if err != nil || encodedWord.MatchString(text) {
- return false
- }
- for _, r := range text {
- switch {
- case r == '\t', r == 0x1b && iso2022:
- case r < 0x20, r == 0x7f, r >= 0x80 && r <= 0x9f, r == 0x2028, r == 0x2029:
- return false
- }
- }
- return true
-}
-
// strippedField reports whether a header field of this name never reaches
// SES (design §5, Header hygiene): Bcc, and every X-SES-* field. SMTP
// honours X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS, and
diff --git a/internal/mailer/hygiene_test.go b/internal/mailer/hygiene_test.go
index 2e14214df..c59de3754 100644
--- a/internal/mailer/hygiene_test.go
+++ b/internal/mailer/hygiene_test.go
@@ -145,7 +145,33 @@ func TestHeaderBlockRefusesEncodedControls(t *testing.T) {
"B that does not decode": msg("From: "+from, "Subject: =?utf-8?b?!!!?="),
"B a lenient reader reads as CRLF": msg("From: "+from, "Subject: =?utf-8?b?DQo*?="),
"Q with a bad escape": msg("From: "+from, "Subject: =?utf-8?q?=ZZ?="),
- "the last field": msg("From: "+from, "To: x@example.org", "Subject: =?utf-8?q?x=0Ay?="),
+ // Round 1 P1: whitespace in a word, UTF-7 and EBCDIC.
+ "B with a space in it": msg("From: =?utf-8?b?Y2Fmw6kN CkJjYzogdmljdGltQGV4YW1wbGUuY29t?= <" + from + ">"),
+ "B across a fold": msg("From: "+from, "Subject: =?utf-8?b?Y2Fmw6kN", " CkJjYzogdmljdGltQGV4YW1wbGUuY29t?="),
+ "UTF-7, Q": msg("From: =?utf-7?Q?+AA0ACg-Bcc:_victim@example.com?= <" + from + ">"),
+ "UTF-7, B": msg("From: =?UTF-7?B?K0FBMEFDZy1CY2M6IHZpY3RpbUBleGFtcGxlLmNvbQ==?= <" + from + ">"),
+ "cp037": msg("From: =?cp037?b?g4GGJcKDg3pApYmDo4mUfIWngZSXk4VLg5aU?= <" + from + ">"),
+ "IBM037": msg("From: "+from, "Subject: =?IBM037?b?g4GGJcKDg3pApYmDo4mUfIWngZSXk4VLg5aU?="),
+ "IBM500": msg("From: "+from, "Subject: =?ibm500?b?g4GGJcKDg3pApYmDo4mUfIWngZSXk4VLg5aU?="),
+ "UTF-16BE line separator": msg("From: "+from, "Subject: =?utf-16be?b?AGEgKABi?="),
+ "a word with no charset": msg("From: "+from, "Subject: =??q?x?="),
+ "an encoding not B or Q": msg("From: "+from, "Subject: =?utf-8?x?abc?="),
+ "Q with a space": msg("From: "+from, "Subject: =?utf-8?q?a b?="),
+ "a leftover word shape": msg("From: "+from, "Subject: =?utf-8?=0A?="),
+ // Round 1 P2: every field.
+ "Resent-From": msg("From: "+from, "Resent-From: =?utf-8?q?x=0D=0ABcc:_v@example.com?= <y@example.org>"),
+ "Return-Path": msg("From: "+from, "Return-Path: =?utf-8?q?x=0Ay?= <y@example.org>"),
+ "Comments": msg("From: "+from, "Comments: =?utf-8?q?x=0Ay?="),
+ "List-Id": msg("From: "+from, "List-Id: =?utf-8?q?x=0Ay?= <list.example.org>"),
+ "Content-Type name=": msg("From: "+from, `Content-Type: application/pdf; name="=?utf-8?q?x=0Ay.pdf?="`),
+ "RFC 2231 file name": msg("From: "+from, "Content-Disposition: attachment; filename*=utf-8''x%0D%0ABcc%3A%20v"),
+ "RFC 2231 continuation": msg("From: "+from, "Content-Disposition: attachment;", " filename*0*=utf-8''a; filename*1*=%0Ab"),
+ "RFC 2231 UTF-7": msg("From: "+from, "Content-Type: text/plain; name*=utf-7''%2BAA0ACg-"),
+ "RFC 2231 bad escape": msg("From: "+from, "Content-Type: text/plain; name*=utf-8''a%0"),
+ // Round 1 P3s: ESC per word, and C1 whatever the charset.
+ "ESC beside an ISO-2022-JP word": msg("From: "+from, "Subject: =?iso-2022-jp?b?GyRCJEokcyQrGyhC?= =?utf-8?b?eBt5?="),
+ "NEL in iso-8859-2": msg("From: "+from, "Subject: =?iso-8859-2?q?x=85y?="),
+ "the last field": msg("From: "+from, "To: x@example.org", "Subject: =?utf-8?q?x=0Ay?="),
} {
if _, err := headerBlock(raw); err == nil {
t.Errorf("%s: headerBlock admitted %q", name, raw)
@@ -161,6 +187,11 @@ func TestHeaderBlockRefusesEncodedControls(t *testing.T) {
"ISO-2022-JP's ESC": msg("From: "+from, "Subject: =?iso-2022-jp?b?GyRCJEokcyQrGyhC?="),
"no encoded word": msg("From: Docs <"+from+">", "Subject: =? not a word"),
"a folded subject": msg("From: "+from, "Subject: =?utf-8?q?caf=C3=A9?=", " =?utf-8?q?_au_lait?="),
+ "windows-1252": msg("From: "+from, "Subject: =?windows-1252?q?=93quoted=94?="),
+ "Shift_JIS": msg("From: "+from, "Subject: =?Shift_JIS?B?g26DjYFb?="),
+ "a language suffix": msg("From: "+from, "Subject: =?utf-8*en?q?hello?="),
+ "RFC 2231, clean": msg("From: "+from, "Content-Disposition: attachment; filename*=utf-8'en'caf%C3%A9.pdf"),
+ "a URL with ?=": msg("From: "+from, "List-Unsubscribe: <https://example.org/u?id=1&t=2>"),
} {
if _, err := headerBlock(raw); err != nil {
t.Errorf("%s: headerBlock refused %q: %v", name, raw, err)
diff --git a/internal/mailer/send.go b/internal/mailer/send.go
index 9a496f476..3bc01148a 100644
--- a/internal/mailer/send.go
+++ b/internal/mailer/send.go
@@ -269,7 +269,7 @@ func (m *Mailer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// out again as an addr-spec, its local part quoted where RFC 5322 needs
// it (Task 6 review): net/mail's Address drops the quotes, so "a b"@x
// would go out as a b@x. One that does not parse back to itself is
-// refused.
+// refused, as is one holding "=?".
func validRequest(req mailsubmit.SendRequest) ([]string, bool) {
if !release.ValidAccount(req.Account) || !release.ValidApp(req.App) || !validHost(req.Host) {
return nil, false
@@ -280,7 +280,9 @@ func validRequest(req mailsubmit.SendRequest) ([]string, bool) {
to := make([]string, 0, len(req.To))
for _, raw := range req.To {
a, err := mail.ParseAddress(raw)
- if err != nil || a.Name != "" || !strings.Contains(a.Address, "@") {
+ // An address holding "=?" could be read as an encoded word by
+ // whatever writes it into a header (Task 6 review P3).
+ if err != nil || a.Name != "" || !strings.Contains(a.Address, "@") || strings.Contains(a.Address, "=?") {
return nil, false
}
spec, ok := addrSpec(a.Address)
diff --git a/internal/mailer/send_test.go b/internal/mailer/send_test.go
index 245ff2083..bd72f3c04 100644
--- a/internal/mailer/send_test.go
+++ b/internal/mailer/send_test.go
@@ -614,6 +614,23 @@ func TestMailerRecipientsKeepTheirQuoting(t *testing.T) {
}
}
+ for _, in := range []string{`"=?utf-8?q?x=0A?="@example.org`, `"a=?b"@example.org`} {
+ if got, ok := validRequest(mailsubmit.SendRequest{Account: tAcct, App: tApp, Host: tHost, From: tFrom,
+ To: []string{in}, Raw: []byte(message(tFrom))}); ok {
+ t.Errorf("%s: admitted as %q; a local part holding =? is refused", in, got)
+ }
+ }
+ // net/mail's quoting drops what it cannot quote (a CR), so the address
+ // written out is another one: refused, never sent to the wrong person.
+ for _, address := range []string{"a\rb@example.org", "a\x00b@example.org"} {
+ if spec, ok := addrSpec(address); ok {
+ t.Errorf("%q: addrSpec gave %q, which is not the same address", address, spec)
+ }
+ }
+ if spec, ok := addrSpec("a b@example.org"); !ok || spec != `"a b"@example.org` {
+ t.Errorf("addrSpec(a b@example.org) = %q %v", spec, ok)
+ }
+
h := newHarness(t)
got := h.send(h.request(func(r *mailsubmit.SendRequest) { r.To = []string{`"a b"@example.org`, "x@example.org"} }))
if got.status != http.StatusOK {
diff --git a/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv b/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
index be803b8c5..38f7936e8 100644
--- a/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
+++ b/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
@@ -95,7 +95,7 @@ internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-
@coverage internal/host/units 63a333f0bb4a354fdde9802089f4ec6794cdfbf774c20fbd48cffab805cd022c
@coverage internal/hostenv 6c96c4abe8548fe3cf12d3a220de3e2917c3edfa5320b1662ea76bdf364d24b5
@coverage internal/instancectl 811493ad636a21f5f8e7f2336e8e58055fd2a83f53dd71ef689cd90232e7d3df
-@coverage internal/mailer 5ffd93e2e875a9ccbfb2ac72e2527cb0b9c47360e8b917c527057f5409d685c6
+@coverage internal/mailer ae1f06f419c6a2f9057453f89db9440cead790f181633d04b19946f4bbaff806
@coverage internal/mailsubmit 519123e15891e0802427595306d8caca1fd7f4f861ae1a2ec70e1c10f012e263
@coverage internal/mailwire 0242392c670a0f61b875056b0d79576ccb69c2e29f56735cbb191e7d038222a0
@coverage internal/moves 9390702695d308a327f5572f4ff5967718141c5d385dff7671ff1e2c825ef407