PublicClass.h
资源名称:SmartMailSvr [点击查看]
上传用户:qdlutongda
上传日期:2007-01-14
资源大小:133k
文件大小:2k
源码类别:
Email客户端
开发平台:
Visual C++
- #include "stdafx.h"
- class CClientSocket;
- class MailUserInfo
- {
- public:
- CString Flags;
- CString Username;
- CString Password;
- CString Comment;
- };
- class SMTPForwardInfo
- {
- public:
- CString Fname;
- CString FnameCTL;
- CString Sender;
- CString Rcpt;
- char RcptHostName[255]; //记录收信人地址中的主机名
- int sendnr;
- int error;
- time_t timestamp;
- BOOL islocal;
- };
- class MapiUserInfo
- {
- public:
- CString Popuser;
- CString Mapiuser;
- CString Mapiaddres;
- };
- class MyAkaInfo
- {
- public:
- CString Text;
- };
- class SocketInfo
- {
- public:
- SocketInfo::SocketInfo()
- {
- showlog = FALSE;
- status2 = 0;
- status = 0;
- typ = 0;
- openf= 0;
- Temp = "";
- Username = "unknown";
- dontwrite = FALSE;
- sock = -1;
- }
- SOCKET sock; //changed by Qxz
- CString ip;
- CString Temp;
- CString Username;
- CString info1;
- CString info2;
- CString info3;
- CString info4;
- CString Sender;
- CString Fname;
- CString FnameCTL;
- int status2;
- int status;
- int typ;
- int openf;
- char crstr[6];
- BOOL showlog;
- BOOL dontwrite;
- FILE *mail;
- BOOL bTransHead; //0:没有传完信件头 1已经传完信件头 在DATA命令中初始化成0
- //BOOL bFinded; //0:没有找到rnMessage-ID: 1 已经找到 在DATA命令中初始化成0
- CString strHead; //用于保存头部信息,同时用于临时保存信件内容,主要用于减少写文件次数
- short sLogin; //0:没有发送Auth login,1:已发送auth login,
- //2:已发送username,3:已验证通过,4:用户名或密码不对,在ehlo或helo命令中初始化为0
- CString strLoginUserName; //用于SMTP验证身份用
- CString strLoginPassword;//用于SMTP验证身份用
- /*Typ Port:
- pop3port 3
- smtpport 4
- daytimeport 8
- telnet 9
- */
- };
- class DeleteInfo
- {
- public:
- CString Filename;
- SOCKET sock;
- };