Fixed screen layout for entering a netmail message

This commit is contained in:
Michiel Broek 2004-11-05 19:38:24 +00:00
parent eeb0c6d60c
commit 769a1884b3

View File

@ -492,6 +492,7 @@ void Post_Msg()
} }
} else if (msgs.Type == NETMAIL) { } else if (msgs.Type == NETMAIL) {
x = FALSE; x = FALSE;
Enter(1);
pout(YELLOW, BLACK, (char *)"Address : "); pout(YELLOW, BLACK, (char *)"Address : ");
FidoNode = calloc(61, sizeof(char)); FidoNode = calloc(61, sizeof(char));
colour(CFG.MsgInputColourF, CFG.MsgInputColourB); colour(CFG.MsgInputColourF, CFG.MsgInputColourB);
@ -534,7 +535,7 @@ void Post_Msg()
} }
} else { } else {
Dest->point = point; Dest->point = point;
PUTCHAR('\r'); Enter(1);
/* Node not known, continue anayway [y/N]: */ /* Node not known, continue anayway [y/N]: */
pout(CYAN, BLACK, (char *) Language(241)); pout(CYAN, BLACK, (char *) Language(241));
alarm_on(); alarm_on();
@ -635,7 +636,7 @@ void Post_Msg()
Save_Msg(FALSE, Dest); Save_Msg(FALSE, Dest);
} }
Enter(1); Enter(1);
sleep(3); sleep(2);
} }
for (i = 0; i < (TEXTBUFSIZE + 1); i++) for (i = 0; i < (TEXTBUFSIZE + 1); i++)
@ -779,6 +780,9 @@ int Save_Msg(int IsReply, faddr *Dest)
if (Line < 2) if (Line < 2)
return TRUE; return TRUE;
/* Saving message to disk */
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(202));
if (!Open_Msgbase(msgs.Base, 'w')) { if (!Open_Msgbase(msgs.Base, 'w')) {
WriteError("Failed to open msgbase \"%s\"", msgs.Base); WriteError("Failed to open msgbase \"%s\"", msgs.Base);
return FALSE; return FALSE;
@ -816,6 +820,10 @@ int Save_Msg(int IsReply, faddr *Dest)
Msg_AddMsg(); Msg_AddMsg();
Msg_UnLock(); Msg_UnLock();
sprintf(temp, " (%ld)", Msg.Id);
PUTSTR(temp);
Enter(1);
ReadExitinfo(); ReadExitinfo();
exitinfo.iPosted++; exitinfo.iPosted++;
WriteExitinfo(); WriteExitinfo();
@ -824,11 +832,6 @@ int Save_Msg(int IsReply, faddr *Dest)
Syslog('+', "Msg (%ld) to \"%s\", \"%s\", in %ld", Msg.Id, Msg.To, Msg.Subject, iMsgAreaNumber + 1); Syslog('+', "Msg (%ld) to \"%s\", \"%s\", in %ld", Msg.Id, Msg.To, Msg.Subject, iMsgAreaNumber + 1);
/* Saving message to disk */
sprintf(temp, "%s(%ld)", (char *) Language(202), Msg.Id);
pout(CFG.HiliteF, CFG.HiliteB, temp);
Enter(1);
msgs.LastPosted = time(NULL); msgs.LastPosted = time(NULL);
msgs.Posted.total++; msgs.Posted.total++;
msgs.Posted.tweek++; msgs.Posted.tweek++;