From e939d37a5a3579e0650985b699cc4ea410d6e4a4 Mon Sep 17 00:00:00 2001 From: wens Date: Wed, 13 Dec 2006 11:06:42 +0000 Subject: new mail notification for internal mail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3454 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 5391d394..17072e5c 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1678,7 +1678,9 @@ send_inner_mail(const char *fpath, const char *title, const char *receiver) unlink(fname); Copy(fpath, fname); sethomedir(fname, rightid); - return append_record_forward(fname, &mymail, sizeof(mymail), rightid); + append_record_forward(fname, &mymail, sizeof(mymail), rightid); + sendalert(receiver, ALERT_NEW_MAIL); + return 0; } #include -- cgit v1.2.3