Go开发的IMAP服务器:Imapsrv

jopen 8年前

Imapsrv是一个采用Go开发的IMAP服务器。

示例

在demo子目录有一个 IMAP 服务器示例,启动在1193端口。运行这个服务器:

$ cd demo  $ go build  $ ./demo

你可以使用 telnet 或 netcat 连接至这个服务器。示例

$ nc -C localhost 1193  * OK IMAP4rev1 Service Ready  * LOGIN test anypassword  * OK LOGIN completed  * CAPABILITY  * CAPABILITY IMAP4rev1  * OK CAPABILITY completed  * SELECT inbox  * 8 EXISTS  * 4 RECENT  * OK [UNSEEN 4] Message 4 is first unseen  * OK [UIDVALIDITY 1] UIDs valid  * OK [UIDNEXT 9] Predicted next UID  * OK SELECT completed  * LOGOUT  * BYE IMAP4rev1 Server logging out  * OK LOGOUT completed

项目主页:http://www.open-open.com/lib/view/home/1415067799033