From fa3b5fba77c6db5dd3b2631f44ede1e9624913e8 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 7 May 2012 15:10:14 +0000 Subject: Check BBS-style mail address more seriously. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5677 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/mail.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pttbbs/mbbsd/mail.c b/pttbbs/mbbsd/mail.c index e4c965ce..d47e41a6 100644 --- a/pttbbs/mbbsd/mail.c +++ b/pttbbs/mbbsd/mail.c @@ -1336,6 +1336,8 @@ doforward(const char *direct, const fileheader_t * fh, int mode) } if (mode == 'Z') { if (strstr(address, MYHOSTNAME) || + strstr(address, ".brd@") || + strstr(address, "@bs2.to") || strstr(address, ".bbs@")) { vmsg("不可使用 BBS 信箱。"); return 1; -- cgit v1.2.3