`
foodyi
  • 浏览: 7677 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

pop3协议参考

阅读更多

原文地址 http://www.pnambic.com/Goodies/POP3Ref.html

 

Protocol Conventions

 

Post Office Protocol, version 3
POP3 RFC 1939, J. Myers & M. Rose
POP3 uses TCP port 110.

Command Responses
All command responses begin with a status line. The status line consists of a status indicator and a keyword possibly followed by additional information. There are currently two status indicators: positive ("+OK") and negative ("-ERR"). Single line command results are generally provided as additional information which follows the status indicator.

Some commands provide a multi-line response which follows a positive status line. After the status line, the server sends additional lines, each terminated by a CRLF pair. When all lines of the response have been sent, a final line is sent, consisting of a termination octet (decimal code 046, ".") and a CRLF pair. If any line of the multi-line response begins with the termination octet, the line is "byte-stuffed" by pre-pending the termination octet to that line of the response. Hence a multi-line response is terminated with the five octets "CRLF.CRLF".

Command Summary
USER name
Defines the user name for access to a maildrop.
  The user name and password string provide authentication and access to a maildrop.

The server may return a positive response even though no such mailbox exists. The server may return a negative response if mailbox exists, but it does not permit plaintext password authentication.
PASS string
Defines the password string for access to a maildrop.
  The user name and password string provide authentication and access to a maildrop.

If a positive response is received, the maildrop is locked and is ready to receive transaction commands.

Since the PASS command has exactly one argument, a POP3 server may treat spaces in the argument as part of the password, instead of as argument separators.
APOP name digest
Provides maildrop access with an encrypted password
  Allows maildrop authentication without sending a password in the clear over the network.

Servers that implement APOP authentication include an RFC822 ‘msg-id’ timestamp in their banner greeting. The `digest' parameter is calculated by applying the MD5 algorithm [RFC1321] to a string consisting of the timestamp (including angle-brackets) followed by a shared secret (e.g. the password). The `digest' parameter itself is a 16-octet value which is sent in hexadecimal format, using lower-case ASCII characters.
QUIT Terminates the session.
 

If messages were marked as deleted, the server attempts to remove them from the maildrop. If an error is encountered while removing messages, some or none of the messages marked as deleted will be removed.

如果消息被标记为删除,服务器会尝试从邮箱删除他们.如果当删除消息时遇到错误,被标记为删除的消息

将会被部分删除或者不删除.


Whether the removal was successful or not, the server then releases any exclusive-access lock on the maildrop and closes the TCP connection.

无论删除是否成功,服务器都会释放独占邮箱的锁以及释放TCP链接.

STAT
Provides ‘drop-listing’ status of the maildrop.

提供邮箱下拉列表的状态

  The minimal drop listing response is an "+OK" followed by a single space, the number of messages in the maildrop, a single space, and the size of the maildrop in octets. More advanced implementations may include other information.

LIST [msg]
Provides ‘scan-listing’ summary of messages in the maildrop.

提供邮箱信息的扫描列表概要

 

If an argument is given, the scan listing for the message follows the positive response header. With no argument, a multi-line response follows with a scan listing for each message in the maildrop.
如果指定一个参数,消息的扫描列表在一个'+'返回头之后.如果没有参数,一个多行的返回在邮箱中每条

消息的一个扫描列表之后
A scan listing consists of the message-number of the message, followed by a single space and the exact size of the message in octets. More advanced implementations may include other information, as parsed from the message.

一个扫描列表由消息的消息数量组成,其次是一个单独的空格和用8进制表示的消息精确的大小.

 

RETR msg
Retrieves a message from the maildrop.

从邮箱中获得消息

 

The message is sent as a multi-line response, being careful to byte-stuff the termination character.

消息被发送当成一个多行的响应,注意字节型结尾的字符.

DELE msg
Mark the msg as deleted from the maildrop.

标记消息为删除从邮箱中

 

Any future reference to the message-number associated with the message in a command generates an error. The server does not actually delete the message until the session enters the UPDATE state via the QUIT command.

任何未来对关联该删除消息的消息号进行引用都会产生一个错误.服务器不会实际删除消息直到该会话输如更新状态通过 QUIT 命令.

NOOP
No operation.
  The server replies with a positive response.
RSET
Reset all messages that are marked as deleted to unmarked.
  The server replies with a positive response.
TOP msg lines
Sends the headers and the requested lines from the indicated msg.
  The headers and lines are sent as a multi-line response. Note that if the number of lines requested is greater than the number of lines in the body, the entire message is sent.
UIDL [msg]
Provides ‘unique id listing’ of messages in the maildrop.
  If an argument is given, the unique-id-listing for the message follows the positive response header. With no argument, a multi-line response follows with a unique-id-listing for each message in the maildrop.

A unique-id-listing consists of the message-number of the message, followed by a single space and the unique-id of the message. No information follows the unique-id.

The unique-id of a message is an arbitrary server-determined string, consisting of one to 70 characters in the range 0x21 to 0x7E, which uniquely identifies a message within a maildrop and which persists across sessions.

Note that messages marked as deleted are not listed.

 

 

分享到:
评论

相关推荐

    pop3以太网报文可用wireshark打开

    pop3协议以太网报文,可以用wireshark软件打开,适用于学习pop3报文解析,学习各种以太网协议可参考本人其他下载文件

    SMTP&POP3协议详细&MIME规范

    该压缩包包含三个文档,分别是SMTP协议详解,POP3协议详解,MIME规范详解,文档中详细介绍了一个邮件发送和接收的过程分析,协议本身的包含的命令和工作过程,为开发邮件代理的客户端提供技术基础。如下是部分SMTP...

    smtp_pop3简介

    smtp协议,pop3协议,简介,为邮箱开发者提供一点参考为邮箱开发者提供一点参考

    实现了北邮2022春季学期互联网协议课程的大作业,内容是编写POP3协议的客户端代码。

    英文。 资源包括: 1.编写要求和教师提供的用于参考的流程图(我没有按照教师的来) 2.代码和注释 3.文档

    手工体验smtp和pop3协议 邮件实现详解(二)

    POP3/IMAP协议定义了邮件客户端软件和POP3邮件服务器的通信规则,这篇文章我们就来手工体验SMTP和POP3协议的奥秘,感兴趣的小伙伴们可以参考一下

    POP3和imap协议实现客户端操作邮件

    通过邮件开通POP3和imap协议,可以在客户端实现读取邮件 标头、日期、附件等内容,并实现下载附件等功能。(测试网易、新浪、QQ免费邮箱可以实现删除邮件功能并同步到服务器邮箱,但测试免费试用期网易企业邮箱时,...

    Python使用POP3和SMTP协议收发邮件的示例代码

    主要介绍了Python使用POP3和SMTP协议收发邮件的示例代码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    C#实验报告七.docx

    一、实验目的 1.理解程序错误和异常的概念。 2.掌握Visual Stdio.NET 2010的调试器的使用方法。 3.掌握C#的try-catch,finally,throw语句的使用方法。...4.反复操作,直到不需要参考教材,能熟练操作为止。

    论文_邮件收发管理系统

    3 SMTP和POP3协议的研究 5 3.1 SMTP协议简介及工作原理 5 3.1.1 SMTP简介 5 3.1.2 SMTP协议的命令 5 3.1.3 SMTP的工作原理 5 3.2 POP3协议介绍和工作原理 6 3.2.1 POP3 简介与命令 6 3.2.2 POP工作原理...

    计算机网络快速入门-pdf版本,推荐大家学习参考!

    应用层 为操作系统或网络应用...包含的主要协议:FTP(文件传送协议)、Telnet(远程登录协议)、DNS(域名解析协议)、SMTP(邮件传送协议),POP3协议(邮局协议),HTTP协议(Hyper Text Transfer Protocol)。

    深入Lumisoft.NET组件与.NET API实现邮件发送功能的对比分析

    而.NET则除了提供SMTP协议功能外,则没有提供POP3协议处理的相关类库,因此收取邮件这需要自己进行封装(需要也可以参考codeproject.com上的相关文章)。 1、.NET的邮件发送功能实现.NET本身封装了一个SmtpClient类...

    Windows 网络程序设计完全讲义 源码

    本书从简单的网络通信协议入手,介绍了windows中常见网络程序的设计方法,主要包括tcp/ip协议、网络服务、mfc网络编程、wininet、isapi、internet、http协议、smtp/pop3协议、代理协议、原始套接字等。此外,还对...

    foxmail本地密码提取器

    基于python开发的, 只支持pop3协议, 其他协议可以参考 步骤: 1. 下载解压, 运行exe文件启动 2. 修改本地hosts文件, 添加127.0.0.1 <邮件服务地址> 3. foxmail中点击收件 4. 应用中会打印出您的邮箱名和密码 ...

    CCNA视频教程.zip

    目录网盘文件永久链接 01课程介绍和常识zip 02计算机通信过程0K,zip 030S参模型0K.zip 040Sl参考模型zip 050Sl参考模型和网络设备和网络安全,zip 06OS1参考模型和网络安全.zip ...20 POP3和SMTP协议

    计算机网络试卷带答案

    4. 在TCP/IP协议中,滑动窗口ARQ协议的研究内容应用于( )协议。 A. TCP B. UDP C. IEEE 802.3 D. IP 5. 信号采用16级正交振幅调制 (QAM), 信号传输速率为3000波特(Baud),则数据的传输速率是( )b/s。 A. ...

    PHP基于imap获取邮件实例

    主要介绍了PHP基于imap获取邮件的方法,实例形式详细讲述了imap获取邮件的具体步骤,并详细讲述了Windows下和Linux下安装imap的方法,需要的朋友可以参考下

    TCPIP协议详解(4-1)

    太大了,分了四个包 目 录 译者序 前言 第一部分 TCP/IP基础 第1章 开放式通信模型简介 1 1.1 开放式网络的发展 1 1.1.1 通信处理层次化 2 1.1.2 OSI参考模型 3 1.1.3 模型的使用 5 ...

    c#网络编程

    其中第1~5章介绍了C#多线程处理、TCP、UDP、SMTP和POP3协议的高级应用以及P2P应用编程,第6章介绍了网络数据加密与解密的方法,第7章介绍了三维设计与多媒体编程方法,第8章为与本书配套的上机实验指导。...

    使用PHP Socket写的POP3类

    查看 POP3/SMTP 协议的时候想尝试一下自己写一个操作类,核心没啥,就是使用 fsockopen ,然后写入/接收数据,只实现了最核心的部分功能,当作是学习 Socket 操作的练手。其中参考了 RFC 2449和一个国外的简单Web...

    基于SMTP邮件截获与还原技术研究.pdf

    1.3.2 POP3协议 5 1.3.3 IMAP协议 7 1.4多用途Internet邮件扩展(Multipurpose Internet Mail Extensions) 9 1.4.1 Base64编码 9 1.4.2 Base64编码/解码的算法实现 10 1.4.3 MIME简介 11 1.4.4 MIME邮件头的组成 12...

Global site tag (gtag.js) - Google Analytics