命令行收邮件 2006-02-23 17:17
命令行收邮件,这里不是Unix下的,是Win*下的,Win2000以下的用command命令,win2000及以上用CMD
废话少说,主要是温习功课,开工。
POP3 RFC:http://www.ietf.org/rfc/rfc1939.txt
我们以网易163邮箱为例:
C:\WINNT\system32>telnet pop.163.com 110
正在连接 pop.163.com ......
+OK Welcome to coremail Mail Pop3 Server (163com[20030606])
+OK core mail
+OK 1 message(s) [4110 byte(s)]
list
+OK 1 4110
1 4110
.
retr 1
Received: from battleshipcove.com (unknown [211.162.7.137])
by 192.168.1.223 (Coremail) with SMTP id M0CivZysskGpJNIC.4
for <chenlei@163.com>; Sun, 05 Dec 2004 14:37:37 +0800 (CST)
X-Originating-IP: [211.162.7.137]
Received: from kablego.se (mail.bahnhof.se [213.136.33.1])
by battleshipcove.com with esmtp
id 0FC70C8D55 for <chenleli@163.com>; Sun, 05 Dec 2004 00:35:41 -0600
Message-ID: <111101c4da94$02de0277$000d9d6a@kablego.se>
From: "Gadded H. Degraded" <posturing@kablego.se>
To: Chenlei <chenlei@163.com>
Subject: FW: Young Neigbhour Tnees Ejnoying Huge Ccok
Date: Sun, 05 Dec 2004 00:35:41 -0600
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0021_F6E0CCE7.8B8FAECB"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-AntiVirus: Checked by Dr.Web (http://www.drweb.net)
This is a multi-part message in MIME format.
------=_NextPart_000_0021_F6E0CCE7.8B8FAECB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Good day.
Be content to be what you are, and prefer nothing to it, and do not fear or wish
for your last day.
dele 1
+OK core mail
quit
遗失对主机的连接。
C:\WINNT\system32>