summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-16 18:53:40 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-16 18:53:40 +0800
commite20bd69d66148c34fee47e1f1f372963a871c047 (patch)
tree96f18d561f95892630b60c4f9ab0f7135c312d61 /mbbsd/register.c
parente9c609d85c53f5a03a08942d65432bb7880b28ed (diff)
downloadpttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar.gz
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar.bz2
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar.lz
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar.xz
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.tar.zst
pttbbs-e20bd69d66148c34fee47e1f1f372963a871c047.zip
- change sender address of auto forward to forwarder, to prevent confusion caused by incorrect forward settings.
- (internal) change bsmtp to allow assigning from address git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4173 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 673baed4..519e47f5 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -388,7 +388,7 @@ justify_wait(char *userid, char *phone, char *career,
static void
email_justify(const userec_t *muser)
{
- char tmp[IDLEN + 1], buf[256], genbuf[256];
+ char buf[256], genbuf[256];
/*
* It is intended to use BBSENAME instead of BBSNAME here.
* Because recently many poor users with poor mail clients
@@ -401,16 +401,12 @@ email_justify(const userec_t *muser)
snprintf(buf, sizeof(buf),
" " BBSENAME " - [ %s ]", makeregcode(genbuf));
- strlcpy(tmp, cuser.userid, sizeof(tmp));
- // XXX dirty, set userid=SYSOP
- strlcpy(cuser.userid, str_sysop, sizeof(cuser.userid));
#ifdef HAVEMOBILE
if (strcmp(muser->email, "m") == 0 || strcmp(muser->email, "M") == 0)
mobile_message(mobile, buf);
else
#endif
- bsmtp("etc/registermail", buf, muser->email);
- strlcpy(cuser.userid, tmp, sizeof(cuser.userid));
+ bsmtp("etc/registermail", buf, muser->email, "non-exist");
move(20,0);
clrtobot();
outs("我們即將寄出認證信 (您應該會在 10 分鐘內收到)\n"