summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 14:33:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 14:33:22 +0800
commit3f850274b0b2f83e62b4a26149c41d754e17f614 (patch)
tree62c53e5d64a3f8786bbc3752fc363def86840818 /mbbsd/mail.c
parent2976baf77a56831a4a063acc0c91102dc2ccc4f4 (diff)
downloadpttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar.gz
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar.bz2
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar.lz
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar.xz
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.tar.zst
pttbbs-3f850274b0b2f83e62b4a26149c41d754e17f614.zip
- register: do not remove spaces until buildling justify string
- mail: drop old reg-confirm mail - Makefile: prevent corpses when using make test git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4143 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 2f4ee3e1..b81b1e3a 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1908,16 +1908,11 @@ bbs_sendmail(const char *fpath, const char *title, char *receiver)
return send_inner_mail(fpath, title, hacker);
}
/* Running the sendmail */
- if (fpath == NULL) {
- snprintf(genbuf, sizeof(genbuf),
- "/usr/sbin/sendmail %s > /dev/null", receiver);
- fin = fopen("etc/confirm", "r");
- } else {
- snprintf(genbuf, sizeof(genbuf),
- "/usr/sbin/sendmail -f %s%s %s > /dev/null",
- cuser.userid, str_mail_address, receiver);
- fin = fopen(fpath, "r");
- }
+ assert(*fpath);
+ snprintf(genbuf, sizeof(genbuf),
+ "/usr/sbin/sendmail -f %s%s %s > /dev/null",
+ cuser.userid, str_mail_address, receiver);
+ fin = fopen(fpath, "r");
if (fin == NULL)
return -1;
fout = popen(genbuf, "w");