summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-04 12:14:57 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-04 12:14:57 +0800
commit1468dc39fd67c39076b38bf4b9736394e416b6b3 (patch)
treeeda05642ac44da6499d63cdd28e65bbe54f11540 /mbbsd/mail.c
parent04b5b79e7900940fc79dd4c4d8a3def9601abcd8 (diff)
downloadpttbbs-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/mail.c')
-rw-r--r--mbbsd/mail.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 17dea28e..f9e116ca 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -116,6 +116,7 @@ mail_muser(userec_t muser, const char *title, const char *filename)
return mail_id(muser.userid, title, filename, cuser.userid);
}
+// TODO add header option?
int
mail_log2id(const char *id, const char *title, const char *src, const char *owner, char newmail, char trymove)
{
@@ -1270,6 +1271,14 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct)
if (!fhdr || !fhdr->filename[0])
return DONOTHING;
+ if (fhdr->owner[0] == '[' || (fhdr->filemode & FILE_ANONYMOUS))
+ {
+ // system mail. reject.
+ vmsg("無法回信。");
+ return FULLUPDATE;
+ }
+
+
stand_title("回 信");
/* 判斷是 boards 或 mail */