summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index c23298c3..978a21c0 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -2085,6 +2085,11 @@ doforward(const char *direct, const fileheader_t * fh, int mode)
vmsg("找不到此使用者 ID。");
return 1;
}
+
+ // some stupid users set self as rejects.
+ if (strcasecmp(xid, cuser.userid) == 0)
+ break;
+
sethomefile(fpath, xid, FN_OVERRIDES);
i = belong(fpath, cuser.userid);
sethomefile(fpath, xid, FN_REJECT);