diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-06-01 19:37:07 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-06-01 19:37:07 +0800 |
commit | 34356c50d1c8aba60b6872646c8e968661ec75ae (patch) | |
tree | 901c8b6703deb75d8d5663cc2239629f3af3debb /mbbsd/mail.c | |
parent | a46d67411ba03eda9f65959fc17de2300df8a241 (diff) | |
download | pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar.gz pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar.bz2 pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar.lz pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar.xz pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.tar.zst pttbbs-34356c50d1c8aba60b6872646c8e968661ec75ae.zip |
reject group mail from user in reject list
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3362 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); |