| 发表于:2007-01-30 13:05:432楼 得分:0 |
转贴: mimella: c++ class library for mail programming 在internet的诸多协议之中,email协议(smtp、pop3、mime、imap)是基础性的协议之一。每时每刻,有相当多的网络通讯都是通过邮件来完成的,其重要性自不待言。除了一般的email服务器和客户端,还有许多其他类型的类型的服务需要用到email协议。例如,统一消息服务(unified messaging service)需要将邮件服务与传统的电话和传真集成在一起。但是,email协议是相当复杂的协议,对于一般的程序员来说,要开发完整、高效、可靠的email api并非是一件简单的事情。mimella是用于创建、解析、修改、发送,以及接收mime格式的邮件消息的c++类库,支持windows平台(可以方便地移植到unix/linux上),以及smtp、pop3、mime、imap和nntp等协议。在掌握了mimella的面向对象接口之后,开发者可以很容易地开发出各种email应用程序。 mimella是开放源码软件,其使用许可如下: copyright (c) 2002 ma weida permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "software "), to deal in the software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom the software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. the software is provided "as is ", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. 需要注意的是,作者并未对mimella 1.0进行过全面和大规模的测试,在其中出现bug在所难免。此外,作者打算撰写一本关于电子邮件开发的书:《mimella:面向对象的邮件开发工具包的设计、实现与应用》(暂定名)。如果你有什么相关的建议或意见,请给作者写信或是在留言版上留言。如果你想要促成本书的写作,请到华中科大出版社编辑的论坛(http://yeka.xilubbs.com/)上“呐喊”几声。:) 如你愿意资助作者,请访问http://www.flyingdonkey.com/ace/#资助。 编译与运行(ms vc++ 6.0) 1. 用winzip解压下载的文件,假定mimella的根目录为$mimella。 2. 打开$mimella\win32目录中的mimella.dsw文件。 3. 在tools-> options-> directories-> include files中加入$mimella\include,在library files中加入$mimella\lib。 4. 编译mimella。 5. 编译并运行$mimella\examples下的各个例子。 注:mimella使用了antlr(another tool for language recognition,http://www.antlr.org)来实现imap协议和mime有关的协议。此外,mimella的设计和实现还参考了mime++:http://www.hunnysoft.com/mimepp/。 enjoy hacking! 马维达 2003/2/6/ copyright(c) http://www.flyingdonkey.com/ | | |
|