summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/mail.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index cb29f976..631c9182 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -162,14 +162,18 @@ chkmailbox()
if (!HAVE_PERM(PERM_SYSOP) && !HAVE_PERM(PERM_MAILLIMIT)) {
if(!mailkeep) setupmailusage();
m_init();
- if (mailkeep > mailmaxkeep ||
- mailsum > mailsumlimit) {
+ if (mailkeep > mailmaxkeep) {
bell();
bell();
- vmsg("您保存信件數目或容量 %d 超出上限 %d, 請整理",
- mailkeep, mailmaxkeep);
+ vmsg("您保存信件數目 %d 超出上限 %d, 請整理", mailkeep, mailmaxkeep);
return mailkeep;
}
+ else if (mailsum > mailsumlimit) {
+ bell();
+ bell();
+ vmsg("您保存信件容量 %d 超出上限 %d, 請整理", mailsum, mailsumlimit);
+ return mailsum;
+ }
}
return 0;
}