summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.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/record.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/record.c')
-rw-r--r--mbbsd/record.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index d6269ce3..0afba2c7 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -636,11 +636,9 @@ append_record_forward(char *fpath, fileheader_t * record, int size, const char *
buf[n + 1] = 0;
strcat(buf, record->filename);
append_record(fpath, record, size);
-#ifndef USE_BSMTP
- bbs_sendmail(buf, record->title, address);
-#else
- bsmtp(buf, record->title, address);
-#endif
+ // because too many user set wrong forward address,
+ // let's but them instead.
+ bsmtp(buf, record->title, address, origid);
return 0;
}
}