diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-13 19:06:42 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-13 19:06:42 +0800 |
commit | e939d37a5a3579e0650985b699cc4ea410d6e4a4 (patch) | |
tree | b08a1844b13f9186926d23f19e6f256476e76cdf /mbbsd | |
parent | 9b109badd098f865e2bb52ad8f1ad33d18d59aeb (diff) | |
download | pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar.gz pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar.bz2 pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar.lz pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar.xz pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.tar.zst pttbbs-e939d37a5a3579e0650985b699cc4ea410d6e4a4.zip |
new mail notification for internal mail
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3454 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mail.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <netdb.h> |