]> code.citadel.org Git - citadel.git/commitdiff
* routines2.c: Quick and dirty fix for Mail> becoming new after entering a
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 27 Jun 2003 22:19:31 +0000 (22:19 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 27 Jun 2003 22:19:31 +0000 (22:19 +0000)
  mail message

citadel/ChangeLog
citadel/routines2.c

index 24e0d7bdd82dd05fa8820477263a45e4c6fc89af..fb607a6b08e185ee17983ba43ad13d6b2f06830c 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 607.9  2003/06/27 22:19:31  error
+ * routines2.c: Quick and dirty fix for Mail> becoming new after entering a
+   mail message
+
  Revision 607.8  2003/06/26 01:50:14  ajc
  * Compiler warning fix for building setup without newt
 
@@ -4792,3 +4796,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index bf81df744ee7b7adc671234548a90a599bff1133..ba73090c210580fb7d86cf6b0ab167b64f99aa3d 100644 (file)
@@ -195,7 +195,12 @@ void updatels(CtdlIPC *ipc)
                r = CtdlIPCSetLastRead(ipc, (maxmsgnum > highest_msg_read) ?
                                 maxmsgnum : highest_msg_read, buf);
        } else {
-               r = CtdlIPCSetLastRead(ipc, maxmsgnum, buf);
+               r = CtdlIPCSetLastRead(ipc, (maxmsgnum > highest_msg_read) ?
+                                maxmsgnum : highest_msg_read, buf);
+/*             r = CtdlIPCSetLastRead(ipc, maxmsgnum, buf); */
+/* This is a quick-and-dirty fix to all msgs becoming new in Mail>.
+ * It will need to be rethought when messages.c is rewritten.
+ */
        }
        if (r / 100 != 2)
                scr_printf("%s\n", buf);