diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-04 12:14:57 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-04 12:14:57 +0800 |
commit | 1468dc39fd67c39076b38bf4b9736394e416b6b3 (patch) | |
tree | eda05642ac44da6499d63cdd28e65bbe54f11540 /mbbsd/register.c | |
parent | 04b5b79e7900940fc79dd4c4d8a3def9601abcd8 (diff) | |
download | pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar.gz pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar.bz2 pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar.lz pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar.xz pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.tar.zst pttbbs-1468dc39fd67c39076b38bf4b9736394e416b6b3.zip |
- register: change notification mails to anonymous style
- mail: fast reject on replying to system mail/anonymous mail.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4079 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 09e25451..22d7e867 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -1474,13 +1474,17 @@ regform_accept(const char *userid, const char *justify) kick_all(muser.userid); } + // According to suggestions by PTT BBS account sysops, + // it is better to use anonymous here. #if FOREIGN_REG_DAY > 0 if(muser.uflag2 & FOREIGN) - mail_muser(muser, "[出入境管理局]", "etc/foreign_welcome"); + mail_log2id(muser.userid, "[System] Registration Complete ", "etc/foreign_welcome", + "[SYSTEM]", 1, 0); else #endif // last: send notification mail - mail_muser(muser, "[註冊成功\囉]", "etc/registered"); + mail_log2id(muser.userid, "[系統通知] 註冊成功\ ", "etc/registered", + "[系統通知]", 1, 0); } void @@ -1520,11 +1524,18 @@ regform_reject(const char *userid, const char *reason, const RegformEntry *pre) if(pre) print_regform_entry_localized(pre, fp, 1); fprintf(fp, "%s 註冊失敗。\n", Cdate(&now)); + // prompt user for how to contact if they have problem + fprintf(fp, ANSI_COLOR(1;31) "如有任何問題或需要與站務人員聯絡請至" + BN_ID_PROBLEM "看板。" ANSI_RESET "\n"); // multiple abbrev loop regform_print_reasons(reason, fp); + fclose(fp); + // According to suggestions by PTT BBS account sysops, + // it is better to use anonymous here. + // // XXX how to handle the notification file better? // mail_log2id: do not use move. // mail_muser(muser, "[註冊失敗]", buf); |