mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-06-09 19:33:35 +00:00
ab2a6e7eb3
In Go 1.25.11/1.26.4, net/textproto error formatting was changed, and now the message is quoted. This is to protect from general string injections. See https://go-review.googlesource.com/c/go/+/778182 and ec1c380418ec6a0da28d4519872e2b81ba9152ba. After this change, the error strings from net/textproto (and net/smtp which uses it) now include quotes. For chasquid, the only user-observable change in the server is that the errors included in the DSN messages are now quoted, which should not be a problem. However, some of the tests which validate error strings need to be adjusted. The patch also updates go.mod to set the Go version to match this new minimum.
32 lines
445 B
Plaintext
32 lines
445 B
Plaintext
|
|
nc unix_listen .test-sock
|
|
|
|
mda = ./mda-lmtp --addr=.test-sock --addr_network=unix \
|
|
-f from -d to < test-email
|
|
|
|
nc -> 220 Hola desde expect
|
|
|
|
nc <~ LHLO .*
|
|
nc -> 250-Bienvenido!
|
|
nc -> 250 Contame...
|
|
|
|
nc <- MAIL FROM:<from>
|
|
nc -> 250 Aja
|
|
|
|
nc <- RCPT TO:<to>
|
|
nc -> 250 Aja
|
|
|
|
nc <- DATA
|
|
nc -> 354 Dale
|
|
|
|
nc <- Subject: test
|
|
nc <-
|
|
nc <- This is a test.
|
|
nc <- .
|
|
|
|
nc -> 452 Nananana
|
|
|
|
mda <- Delivery failed remotely: 452 "Nananana"
|
|
mda wait 75
|
|
|