summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 03:42:17 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 03:42:17 +0800
commit74cd20707c189fc522e7b44653f1d59a6219586c (patch)
treee03fd94ccc9860de963e7659a8274ef4176726e5
parent6eed5faa477f64818190b7220cd9ad7a138cc319 (diff)
downloadpttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar.gz
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar.bz2
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar.lz
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar.xz
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.tar.zst
pttbbs-74cd20707c189fc522e7b44653f1d59a6219586c.zip
ADD_EXMAILBOX
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2071 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/config.h4
-rw-r--r--mbbsd/mail.c2
-rw-r--r--sample/pttbbs.conf3
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 修改您的前進站畫面)"