Our non-delivery status notifications are quite simple today, but that makes it much more difficult to support internationalization and cross-language reporting. There is a standard for internationalized DSNs, RFC 6533 (which builds on top of the structured DSNs from RFC 3464). This patch changes our DSN messages to be based on those standards, so it is easier for MUAs to display reports according to the users' languages preferences. Note we still use message/rfc822 + 8bit to transmit the message, instead of message/global, for compatibility reasons. This seems to be more universally compatible, but the decision might be revisited in the future. See RFC 5335 (section 4.6 in particular).
25 lines
347 B
Plaintext
25 lines
347 B
Plaintext
|
|
c tcp_connect localhost:1025
|
|
|
|
c <~ 220
|
|
c -> EHLO localhost
|
|
c <... 250 HELP
|
|
c -> MAIL FROM: <>
|
|
c <~ 250
|
|
c -> RCPT TO: user@testserver
|
|
c <~ 250
|
|
c -> DATA
|
|
c <~ 354
|
|
c -> From: Mailer daemon <somewhere@báratro>
|
|
c -> Subject: I've come to haunt you
|
|
c -> Message-ID: <booooo>
|
|
c ->
|
|
c -> Ñañañañaña!
|
|
c ->
|
|
c ->
|
|
c -> .
|
|
c <~ 250
|
|
c -> QUIT
|
|
c <~ 221
|
|
|