EML格式是各类电子邮件软件中所支持的一种通用格式,遵循RFC822及其后续扩展。文中对EML格式做了细致的分析,在此基础上.使用VC作为开发工具,实现了Windows平台下对EML文件中各类相关信息的读取和解码。所实现的CMail类应用于实际的项目开发中,取得了比较好的效果,能够满足一般用户的需求。用户也可根据自己的需求增加相应的处理函数,同时文中的分析过程列其它系统平台下的类似需求具有一定的指导作用。
EML is a kind of general format supported by all kinds of Email software and this format follows the standard of RFC822 and its extensions. Analyzes the fore,at of EML and then implements how to read and decode the information in EML under Windows platform with VC6. Design a class named CMail and use it in the development of project. Through test, it achieves a good effect and can satisfy the needs of most users. Users can also add some functions according to their own needs. The developers who have similar needs in other platform can benefit from the analysis in this pager.