summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-14 03:43:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-14 03:43:22 +0800
commit584b00dfc540b2911e865b81bf5e213905cd9b8a (patch)
tree30f2e4e36ad244423b2063fecdd67322790db287 /mbbsd/mail.c
parent41d98092590000461272203026766702d624fa99 (diff)
downloadpttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar.gz
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar.bz2
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar.lz
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar.xz
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.tar.zst
pttbbs-584b00dfc540b2911e865b81bf5e213905cd9b8a.zip
- mail: ignore self from reject list
- record/mbbsd: drop unused code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4309 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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);