summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-04 11:28:03 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-04 11:28:03 +0800
commit3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f (patch)
tree0f02d2f3430a3a4c83e065be714911e6692973a2 /mbbsd/mail.c
parent0e2472de4ee9255a0c26b8cffdbeedb886d57c68 (diff)
downloadpttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.gz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.bz2
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.lz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.xz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.zst
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.zip
Use file_exist_record directly
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4392 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 019f4695..d598c9a7 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -411,10 +411,10 @@ do_innersend(const char *userid, char *mfpath, const char *title)
strlcpy(mhdr.title, save_title, sizeof(mhdr.title));
sethomefile(fpath, userid, FN_OVERRIDES);
- i = belong(fpath, cuser.userid);
+ i = file_exist_record(fpath, cuser.userid);
sethomefile(fpath, userid, FN_REJECT);
- if (i || !belong(fpath, cuser.userid)) {/* Ptt: 用belong有點討厭 */
+ if (i || !file_exist_record(fpath, cuser.userid)) {/* Ptt: 用belong有點討厭 */
sethomedir(fpath, userid);
if (append_record_forward(fpath, &mhdr, sizeof(mhdr), userid) == -1)
{
@@ -713,9 +713,9 @@ multi_send(char *title)
// searchuser modifies it
if (searchuser(p, p) && strcmp(STR_GUEST, p)) {
sethomefile(genbuf, p, FN_OVERRIDES);
- if (!belong(genbuf, cuser.userid)) { // not friend, check if rejected
+ if (!file_exist_record(genbuf, cuser.userid)) { // not friend, check if rejected
sethomefile(genbuf, p, FN_REJECT);
- if (belong(genbuf, cuser.userid))
+ if (file_exist_record(genbuf, cuser.userid))
continue;
}
sethomepath(genbuf, p);
@@ -2100,10 +2100,10 @@ doforward(const char *direct, const fileheader_t * fh, int mode)
break;
sethomefile(fpath, xid, FN_OVERRIDES);
- i = belong(fpath, cuser.userid);
+ i = file_exist_record(fpath, cuser.userid);
sethomefile(fpath, xid, FN_REJECT);
// TODO 該 return 哪種值?
- if (!i && belong(fpath, cuser.userid))
+ if (!i && file_exist_record(fpath, cuser.userid))
return -1;
} while (0);