diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 22:12:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 22:12:27 +0800 |
commit | 3874e732f9f9b9a85df1a044137c9a083e3fc722 (patch) | |
tree | e7a7a393a600ae02bbbecf3719458e466af9fa14 /mbbsd/register.c | |
parent | a4f496f0c13fb087296e9091f005d29af22a90ec (diff) | |
download | pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.gz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.bz2 pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.lz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.xz pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.tar.zst pttbbs-3874e732f9f9b9a85df1a044137c9a083e3fc722.zip |
register: compact ID_RECORD title format
register: use "system" in regform reject mail instead of reviewer name
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 781bc74e..0207014c 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -1383,12 +1383,17 @@ regform_log2board(const RegformEntry *pre, char accept, const char *reason) char fn[PATHLEN]; char title[STRLEN]; FILE *fp = NULL; + char *title2 = NULL; snprintf(title, sizeof(title), "[審核結果] %s: %s (審核者: %s)", accept ? "通過":"退回", pre->userid, cuser.userid); - if (post_msg_fpath(BN_ID_RECORD, title, title, "[註冊系統]", fn) < 0 || + // reduce mail header title + title2 = strchr(title, ' '); + if (title2) title2++; + + if (post_msg_fpath(BN_ID_RECORD, title, title2 ? title2 : title, "[註冊系統]", fn) < 0 || ((fp = fopen(fn, "at")) == NULL)) return; @@ -1508,7 +1513,8 @@ regform_reject(const char *userid, const char *reason, const RegformEntry *pre) // multiple abbrev loop regform_print_reasons(reason, fp); fclose(fp); - mail_muser(muser, "[註冊失敗]", buf); + // mail_muser(muser, "[註冊失敗]", buf); + mail_log2id(muser.userid, "[註冊失敗]", buf, "[註冊系統]", 1, 0); } // Regform v1 API |