SMTP: (没有第二个 )作为双换行符 [英] SMTP: (without second ) as double newline

查看:144
本文介绍了SMTP: (没有第二个 )作为双换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 SMTP 解析器运行良好.从第三方软件接收流量时出现问题,该软件将双换行符发送为 "(没有第二个 ").目前,此类连接被终止为不兼容的 SMTP.有人可以解释一下 RFC 对这种有趣"的双换行符到底是怎么说的吗?我可以假设发送这样的数据的软件做错了什么吗?

I have SMTP parser that works mostly fine. There is a problem when receiving traffic from third party software that sends double newlines as " " (without the second " "). Currently such connections are terminated as non-compliant SMTP. Can somebody explain what exactly RFC says about such "funny" double newlines? Can I asume that software that sends data like that is doing something really wrong?

推荐答案

RFC2821.第 2.3.7 节:

RFC2821. Section 2.3.7:

SMTP 命令,除非更改通过服务扩展,消息
数据,以行"的形式传输.行包含零个或多个数据
由序列终止的字符ASCII 字符CR"(十六进制值 0D)紧随其后的是 ASCII字符LF"(十六进制值 0A).

SMTP commands and, unless altered by a service extension, message
data, are transmitted in "lines". Lines consist of zero or more data
characters terminated by the sequence ASCII character "CR" (hex value 0D) followed immediately by ASCII character "LF" (hex value 0A).

http://www.ietf.org/rfc/rfc2821.txt

--戴夫

这篇关于SMTP: (没有第二个 )作为双换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆