📄 p3pmail.h
字号:
/* * p3pmail v1.3 * * (C) 2004 by Jack S. Lai <laitcg@cox.net> * * It's intent is to parse dangerous html tags from email messages to make * them safe for viewing. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */#ifndef P3PMAIL_H#define P3PMAIL_H#include <stdio.h>#include <string.h>#include <stdarg.h>#include <stdlib.h>#include <ctype.h>#include <resolv.h>#include <malloc.h>#include <getopt.h>#include <errno.h>#include <syslog.h>#include <sys/types.h>#include <unistd.h>#define PROGNAME "p3pmail"#define VERSION "1.3"#define AUTHOR "<laitcg@cox.net>/<pentothal@users.sourceforge.net>"#define MAX_BUF_SIZE 4096#define FEWCHARACTERS 10#define P_tmpdir "/tmp"#define NUL '\0'#define DECBUF 1024#define ENCBUF 2048#define B64ENCCOLS 60 // must be a multiple of 4#define B64DECCOLS (3 * B64ENCCOLS / 4)static const char cd64[]="|$$$}rstuvwxyz{$$$$$$$>?@ABCDEFGHIJKLMNOPQRSTUVW$$$$$$XYZ[\\]^_`abcdefghijklmnopq";static const char cb64[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";static const char Base64[] ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";static const char Pad64 = '=';char *hexdigits = "0123456789ABCDEF";char *hexdigits2 = "0123456789abcdef";typedef struct configuration_t { char * syslogname; char * configfile; int debug; int quiet; int image; int link;} configuration_t;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -