问题描述
推荐答案
来自RFC 2822§ 3.4"地址规范",地址的ABNF表示为:
From RFC 2822 §3.4 "Address Specification", the ABNF for an address is indicated as:
address = 邮箱/组
邮箱 = name-addr / addr-spec
name-addr = [display-name] angle-addr
angle-addr = [CFWS] "<" addr-spec">" [CFWS] / obs-angle-addr
group = display-name":" [邮箱列表/ CFWS]" ;;" [CFWS]
CFWS是折叠白空间(FWS)的超集; FWS表示单个空格字符,或CRLF后跟单个空格字符。您可以阅读相同RFC的第3.2.3节和第2.2.3节中的确切定义
address = mailbox / group
mailbox = name-addr / addr-spec
name-addr = [display-name] angle-addr
angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
group = display-name ":" [mailbox-list / CFWS] ";" [CFWS]
CFWS is a superset of the Folding White Space (FWS); an FWS represents either a single white space character, or a CRLF followed by a single white space character. You can read the exact definiton in sections §3.2.3 and §2.2.3 of the same RFC
从上面的定义中,将发件人地址与发件人地址分开; \\ n完全合法;不同的行为可以是任意的,也可以是不受欢迎的,但它肯定不是一个bug。
From the definition above, separating the sender from the sender address with "\r\n " is perfectly legal; the different behavior can be arbitrary and undesirable, but it's definitely not a bug.
如果这真的是导致垃圾邮件过滤器发出警告的原因,那么它就是不合规的过滤器除了编写不同的SMTP传输之外,你几乎无能为力。
If that's really what is causing the spam filter to emit the warning, then it's the filter that is not in compliance and there is little you can do about that, short of writing a different SMTP transport.
对不好的消息感到抱歉
--mc
Sorry for the bad news
--mc
这篇关于SmtpClient Bug - 在4.0中从标题添加换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!