邮局协议( 二 )


可能的回应: " OK"
RSET
该命令将引发服务器中断当前的处理并且返回等待命令(RDEL,RETR,QUIT,NOOP或者RSET其中的一个) 当中断一个处理时 , 服务器必须注重正确的关闭邮箱和对邮箱解锁 。
可能的回应: " OK"
3. 致谢
I would like to acknowledge the contributions of Jon Postel, Joel Goldberger, Dale Chase, and Michael Butler in the development of the Post Office Protocol.
4. 参考:
[1] Postel, J., "Simple Mail Transfer Protocol", RFC-821, USC/Information Sciences Institute, August 1982.
[2] Crocker, D., "Standard for the Format of ARPA-Internet Text Messages", RFC-822, University of Delaware, August 1982.
图示:
---------------
OpenOKOKOK
-----> S -- --> C ------> S ------> C ------> S ---->
^USERPASS
---------------
-ERR-ERR
V V
<----------- <---------------- <----------------------

V------
----->QUITOK
C ------> S ----->Close
----->
^------
V
<-------------------------------------------------------------
^
------------------
RETR#xxxRECVDATARCVDOK
-> C ----> S -----> C ----> S ----> C ----> S --->
Or ^
---RDEL ---------------
-ERR-ERR
VV
<-------------Abort
V V V
<--------------- ------------------------>
V
------
RSETOK
-----> C ------> S ----->
------
V
<----------------------------
^
------
NOOPOK
-----> C ------> S ----->
------


推荐阅读