+Thu Nov 12 23:59:13 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Rewrote cmd_rchg() and also increased the size of the "fakename"
+ buffer. Overruns are probably what was causing the crashes.
+ * Changed the way cmd_ent3() handles mail messages; the previous code
+ rerouted all private mail to the trash.
+
Wed Nov 11 17:57:39 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* citserver.c: slight changes to cmd_rchg() and cmd_hchg() [crashes]
* citserver.c, msgbase.c, user_ops.c: hide the owner-prefix of mail
return;
}
+ /* See if there's a recipient, but make sure it's a real one */
+ extract(recp, entargs, 1);
+ for (a=0; a<strlen(recp); ++a)
+ if (!isprint(recp[a]))
+ strcpy(&recp[a], &recp[a+1]);
+ while (isspace(recp[0])) strcpy(recp, &recp[1]);
+ while (isspace(recp[strlen(recp)-1])) recp[strlen(recp)-1] = 0;
+
/* If we're in Mail, check the recipient */
- if (CC->quickroom.QRflags & QR_MAILBOX) {
- extract(recp, entargs, 1);
+ if (strlen(recp) > 0) {
e=alias(recp); /* alias and mail type */
- if ((buf[0]==0) || (e==M_ERROR)) {
+ if ((recp[0]==0) || (e==M_ERROR)) {
cprintf("%d Unknown address - cannot send message.\n",
ERROR+NO_SUCH_USER);
return;
if (e == M_LOCAL) {
a = getuser(&tempUS,recp);
if (a!=0) {
- cprintf("%d No such user.\n", ERROR+NO_SUCH_USER);
+ cprintf("%d No such user.\n",
+ ERROR+NO_SUCH_USER);
return;
}
}