]> code.citadel.org Git - citadel.git/commitdiff
see ChangeLog
authorArt Cancro <ajc@citadel.org>
Fri, 13 Nov 1998 05:00:51 +0000 (05:00 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 13 Nov 1998 05:00:51 +0000 (05:00 +0000)
citadel/ChangeLog
citadel/msgbase.c

index e4fe15ffcec88c572f3edce1a622e617c5192755..9c03581a4d1824b4f0fc2bf4a23fab9b23fcc198 100644 (file)
@@ -1,3 +1,9 @@
+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
index 4aa9b6f9125724b89fbf4e83764f03cfea760a5c..ff85fb4d3f7c028d3a0b096486295f526c382302 100644 (file)
@@ -1081,11 +1081,18 @@ void cmd_ent3(char *entargs)
                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;
@@ -1093,7 +1100,8 @@ void cmd_ent3(char *entargs)
                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;
                                }
                        }