📄 settings.h
字号:
/*
+-----------------------------------------------------------------------------+
| |
| settings.h |
| Last change: yyyy-mm-dd |
| |
| Author: Jan Krumsiek |
| eMail: proxy@krumsiek.com |
| Web: http://www.krumsiek.com/proxy |
| |
| Copyright 2003 - Jan Krumsiek |
| This source code can freely be modified and redistributed. No liability |
| whatsoever is taken by the author for any use of this software. |
| |
| Description: |
| Header file for settings.cpp. Contains declaration of settings struct |
| |
+-----------------------------------------------------------------------------+
*/
#ifndef _settings_h_
#define _settings_h_
#include "rulefile.h"
#include "iprules.h"
// Main settings struct - this struct holds all settings
typedef struct s_MAINSETTINGS
{
struct s_emailsettings
{
RULEFILE* rules; // RULES struct for rules file
CHARPTR rulefile; // pointer to rules file
USHORT port; // port for listening
CHARPTR archivedir; // directory for incoming messages
CHARPTR trashdir; // directory for blocked message
UINT keeptrash; // number of days blocked messages are kept
IPRULESET* iprules; // IPRULESET struct for email proxy
CHARPTR iprulefile; // path to ip rule file
} emailsettings;
} MAINSETTINGS;
// Variable for settings
extern MAINSETTINGS mainset;
// Enumeration for types of main setting commands
enum MAINSETTYPE {MS_EMAILRULES, MS_EMAILPORT, MS_EMAILTRASH, MS_EMAILKEEPTRASH,
MS_EMAILIPRULES, MS_UNKNOWN};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -