summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-10 20:48:40 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-10 20:48:40 +0800
commit90eb3c77f058ddad2e6d369b8aab5232f685c100 (patch)
tree23b6677da96436058b5f6b538b03ac3bfcc6fd99 /mbbsd/mail.c
parente198264c33367686003b30ae2399df6f286978bf (diff)
downloadpttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar.gz
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar.bz2
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar.lz
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar.xz
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.tar.zst
pttbbs-90eb3c77f058ddad2e6d369b8aab5232f685c100.zip
- (internal) vedit should not change input parameter.
- (internal) prepare to disable mail auto forwarding git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4127 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 60d2b34f..33fb6bf2 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -18,6 +18,7 @@ enum SHOWMAIL_MODES {
};
static int showmail_mode = SHOWMAIL_NORM;
+// #ifdef USE_MAIL_AUTO_FORWARD
int
setforward(void)
{
@@ -61,6 +62,7 @@ setforward(void)
vmsg("取消自動轉信!");
return 0;
}
+// #endif // USE_MAIL_AUTO_FORWARD
int
toggle_showmail_mode(void)
@@ -401,6 +403,9 @@ do_send(const char *userid, const char *title)
if (internet_mail) {
int res, ch;
+ sethomepath(fpath, cuser.userid);
+ stampfile(fpath, &mhdr);
+
if (vedit(fpath, NA, NULL) == -1) {
unlink(fpath);
clear();