From 34356c50d1c8aba60b6872646c8e968661ec75ae Mon Sep 17 00:00:00 2001 From: scw Date: Thu, 1 Jun 2006 11:37:07 +0000 Subject: reject group mail from user in reject list git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3362 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 4c4f58d9..1f90b980 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -599,9 +599,15 @@ multi_send(char *title) outc(' '); } outs(p->word); - if (searchuser(p->word, p->word) && strcmp(STR_GUEST, p->word)) + if (searchuser(p->word, p->word) && strcmp(STR_GUEST, p->word)) { + sethomefile(genbuf, p->word, FN_OVERRIDES); + if (!belong(genbuf, cuser.userid)) { // not friend, check if rejected + sethomefile(genbuf, p->word, FN_REJECT); + if (belong(genbuf, cuser.userid)) + continue; + } sethomepath(genbuf, p->word); - else + } else continue; stampfile(genbuf, &mymail); unlink(genbuf); -- cgit v1.2.3