diff options
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | mbbsd/mail.c | 2 | ||||
-rw-r--r-- | sample/pttbbs.conf | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index c1ec976c..3b75d63b 100644 --- a/include/config.h +++ b/include/config.h @@ -113,6 +113,10 @@ #define INNTIMEZONE "+0800 (CST)" #endif +#ifndef ADD_EXMAILBOX +#define ADD_EXMAILBOX 0 /* 贈送信箱 */ +#endif + /* 以下還未整理 */ #define MAX_FRIEND (256) /* 載入 cache 之最多朋友數目 */ #define MAX_REJECT (32) /* 載入 cache 之最多壞人數目 */ diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 003256c7..792dc976 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -153,7 +153,7 @@ chkmailbox() mailsumlimit = 200; else mailsumlimit = 50; - mailsumlimit += cuser.exmailbox * 10; + mailsumlimit += (cuser.exmailbox + ADD_EXMAILBOX) * 10; mailmaxkeep = max_keepmail + cuser.exmailbox; m_init(); if ((mailkeep = get_num_records(currmaildir, sizeof(fileheader_t))) > diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf index 8cb5d27f..e034a321 100644 --- a/sample/pttbbs.conf +++ b/sample/pttbbs.conf @@ -154,6 +154,9 @@ /* 若訂義, 則使用舊式推文 */ #define OLDRECOMMEND +/* 贈送信箱 */ +//#define ADD_EXMAILBOX 100 + /* 前進站畫面 */ #define INSCREEN \ "前進站畫面 (請至 pttbbs.conf 修改您的前進站畫面)" |