📄 pop3io.h
字号:
#ifndef __POP3IO_H__
#define __POP3IO_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <signal.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/un.h>
#undef MIN
#undef MAX
#include "defines.h"
#include "smtpio.h"
#include "sockio.h"
#include "mailbox.h"
#define P_VER_MAJOR '0'
#define P_VER_MINOR '3'
#define P_VER_REL '6'
enum pop3_errnos {P_NO_ERROR,
P_ERR_RESOLVE,
P_ERR_SOCKET,
P_ERR_CONNECT,
P_ERR_SERV_ACK,
P_ERR_USER_SEND,
P_ERR_USER_RECV,
P_ERR_PASS_SEND,
P_ERR_PASS_RECV,
P_ERR_LIST_SEND,
P_ERR_LIST_RECV,
P_ERR_STAT_SEND,
P_ERR_STAT_RECV,
P_ERR_UIDL_SEND,
P_ERR_UIDL_RECV,
P_ERR_RETR_SEND,
P_ERR_RETR_RECV,
P_ERR_RSET_SEND,
P_ERR_RSET_RECV,
P_ERR_QUIT_SEND,
P_ERR_QUIT_RECV,
P_ERR_DELE_SEND,
P_ERR_DELE_RECV};
typedef enum pop3_errnos pop3errnos;
char *pop3error(void);
int ifreceive(char *);
int eml_mime_parse(char *message, Rmail *rmail);
int eml_pop3_user(int sock, char *login);
int eml_pop3_pass(int sock, char *passwd);
int eml_pop3_stat(int sock);
int eml_pop3_list(int sock);
//int eml_pop3_uidl(int sock, unsigned int id, char *uid);
void prepare_popmail(struct RmailList *popmail);
void free_popmail(struct RmailList *popmail);
int eml_pop3_retr(int sock,unsigned int id);
int eml_pop3_dele(int sock, unsigned int id);
int eml_pop3_rset(int sock);
int eml_pop3_quit(int sock);
int eml_pop3_login(Server *server, char *login, char *passwd);
int eml_pop3_logoff(int sock);
int eml_pop3_mails(Server *server, char *login, char *passwd, int del_yn);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -