📄 parameters.h
字号:
#ifndef PARA_H
#define PARA_H
#define POP3_PORT_NUMBER "110"
#define SMTP_PORT_NUMBER "25"
#define WIN_W 240
#define WIN_H 280
#define NBW_W 240
#define NBW_H 280
#define CHW_W 240
#define CHW_H 280
#define PPW_W 240
#define PPW_H 280
#define RWW_W 240
#define RWW_H 280
#define MAXNUMSIZE 256
#define MAXNUMNO 10
#define MAXLOGINSIZE 128
#define MAXNUMBER 12
#define MAXCHLOG 32
#define MAXNEWMAIL 1200
#define MAXRCVMAIL 2500
#define MAXCHRNUM 180
#define CHAR_SET 100
#define NONE_SET 200
#define NEW_MAIL 0
#define PORT_SET 1
#define LOGIN_SET 2
#define OLD_MAIL_READ 3
#define MAIL_WRITE 4
#define NEW_MAIL_READ 5
#define MAIL_READ 6
#define EMPTY_ERROR 250
#define NON_EMPTY 500
#define REMB_PASS 10
#define FORG_PASS 20
#define CLEAR_SERVER 1
#define NOCLEAR_SERVER 0
#define SEND 111
#define RECEIVE 222
#define RMBOX 333
#define SMBOX 444
#define SENDMAIL 555
#define RECVMAIL 666
#define DELRECORD 10
typedef unsigned char uchar;
typedef unsigned int uint;
typedef struct loginfo{
int order; // the order of this operation
int mailid; // the mail id
int opid;
char user[20]; // operation id: del,add or ch
}CHANGELOG;
typedef struct numberset{
char user[20];
char maddr[32];
char pop3[32];
char pop3port[4];
char smtp[32];
char smtpport[4];
char mnum[24];
char passwd[16];
int ifrempass;
int ifemptyserver;
int chr_num;
}Number;
typedef struct {
char *servname;
char *username;
char *userpasswd;
uchar rempass;
}Login;
typedef struct new_email{
int mailid;
char user[20];
char from[30];
char to[30];
char cc[30];
char subject[32];
char textbody[1024];
int mail_line;
}NEW;
typedef struct new_rvmail{
int mailid;
char user[20];
char sender[64];
char receiver[64];
char date[40];
char subject[64];
char messageid[128];
char content[1024];
char attach_file[1024];
int mail_line;
}RCV;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -