Skip to content

Commit 7336d8b

Browse files
committed
mail: MIME-encode subject as well
This is mostly hypothetical at this point, but I also don't need any reason not to do that.
1 parent 69fb27a commit 7336d8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,11 @@ func writeITP(gopkg, debsrc, debversion string) (string, error) {
690690
description = "TODO"
691691
}
692692

693+
subject := mime.QEncoding.Encode("utf-8", fmt.Sprintf("ITP: %s -- %s", debsrc, description))
694+
693695
fmt.Fprintf(f, "From: %q <%s>\n", mime.QEncoding.Encode("utf-8", getDebianName()), getDebianEmail())
694696
fmt.Fprintf(f, "To: [email protected]\n")
695-
fmt.Fprintf(f, "Subject: ITP: %s -- %s\n", debsrc, description)
697+
fmt.Fprintf(f, "Subject: %s\n", subject)
696698
fmt.Fprintf(f, "Content-Type: text/plain; charset=utf-8\n")
697699
fmt.Fprintf(f, "Content-Transfer-Encoding: 8bit\n")
698700
fmt.Fprintf(f, "X-Debbugs-CC: [email protected], [email protected]\n")

0 commit comments

Comments
 (0)