summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-17 11:25:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-17 11:25:17 +0800
commit2410045bd17cd7c391eb10bc6e891db90bcf5dac (patch)
tree5c537021a771408d39ec18b5148e2328da7f74b0 /mbbsd/mail.c
parentc10117c7559f93934919890d113d63b2379ce50d (diff)
downloadpttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar.gz
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar.bz2
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar.lz
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar.xz
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.tar.zst
pttbbs-2410045bd17cd7c391eb10bc6e891db90bcf5dac.zip
- mail: do not add numposts for cross-posting mails
- cross-post: notify user that all cp will not add numposts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3924 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index e8684174..a5f09ce3 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1473,6 +1473,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
setbdir(fname, xboard);
append_record(fname, &xfile, sizeof(xfile));
setbtotal(getbnum(xboard));
+
if (!xfile.filemode)
outgo_post(&xfile, xboard, cuser.userid, cuser.nickname);
#ifdef USE_COOLDOWN
@@ -1481,10 +1482,8 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
add_posttimes(usernum, 1);
#endif
- if (strcmp(xboard, GLOBAL_TEST) == 0)
- outs("測試信件不列入紀錄,敬請包涵。");
- else
- cuser.numposts++;
+ // cross-post does not add numpost.
+ outs("轉錄信件不增加文章數,敬請包涵。");
vmsg("文章轉錄完成");
currmode = currmode0;