From 1468dc39fd67c39076b38bf4b9736394e416b6b3 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 4 Apr 2008 04:14:57 +0000 Subject: - 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 --- mbbsd/mail.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mbbsd/mail.c') 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 */ -- cgit v1.2.3