summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 15:37:31 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 15:37:31 +0800
commit9a360cadca87f1c091ecd1502237051be58d1cb7 (patch)
tree1e9c1af6fc7ac8831172ae958db9d5ee4c2a0080 /mbbsd/mail.c
parentb384cc82423ed1e451b2109d2bd3ad22dd8e15cb (diff)
downloadpttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar.gz
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar.bz2
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar.lz
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar.xz
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.tar.zst
pttbbs-9a360cadca87f1c091ecd1502237051be58d1cb7.zip
- chat: add ZA in chat
- mail/read: allow ^P in mail to send iner mail - syspost: fix some messages without trailing newlines git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4216 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 9b051613..1fb65f35 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -85,7 +85,7 @@ built_mail_index(void)
"確定重建信箱?(y/N)", genbuf, 3,
LCECHO);
if (genbuf[0] != 'y')
- return 0;
+ return FULLUPDATE;
snprintf(genbuf, sizeof(genbuf),
BBSHOME "/bin/buildir " BBSHOME "/home/%c/%s > /dev/null",
@@ -93,7 +93,7 @@ built_mail_index(void)
mvouts(b_lines - 1, 0, ANSI_COLOR(1;31) "已經處理完畢!! 諸多不便 敬請原諒~" ANSI_RESET);
system(genbuf);
pressanykey();
- return 0;
+ return FULLUPDATE;
}
int
@@ -475,14 +475,18 @@ my_send(const char *uident)
int
m_send(void)
{
- char uident[40];
+ // in-site mail
+ char uident[IDLEN+1];
- vs_hdr("且聽風的話");
+ vs_hdr("站內寄信");
usercomplete(msg_uid, uident);
showplans(uident);
if (uident[0])
+ {
my_send(uident);
- return 0;
+ return FULLUPDATE;
+ }
+ return DIRCHANGED;
}
/* 群組寄信、回信 : multi_send, multi_reply */
@@ -1690,7 +1694,7 @@ static const onekey_t mail_comms[] = {
{ 0, NULL }, // Ctrl('M')
{ 0, NULL }, // Ctrl('N')
{ 0, NULL }, // Ctrl('O') // DO NOT USE THIS KEY - UNIX not sending
- { 0, NULL }, // Ctrl('P')
+ { 0, m_send }, // Ctrl('P')
{ 0, NULL }, // Ctrl('Q')
{ 0, NULL }, // Ctrl('R')
{ 0, NULL }, // Ctrl('S')