serv_imap.c (citserver)/roomops.c (webcit): bugfixes to message flag handling (Phil...
authorArt Cancro <ajc@citadel.org>
Mon, 15 May 2023 01:08:50 +0000 (21:08 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 15 May 2023 01:08:50 +0000 (21:08 -0400)
citadel/server/modules/imap/serv_imap.c
webcit/roomops.c

index 74697f1faffbde81b1c6991b7c72bf17f9469930..fd0b93dd60218eb48043af23b3459a7e8b2537b2 100644 (file)
@@ -166,7 +166,7 @@ void imap_set_seen_flags(int first_msg) {
        char setstr[64], lostr[64], histr[64];
        long lo, hi;
 
-       if (Imap->num_msgs < 1) return;
+       if (Imap->num_msgs < 0) return;
        CtdlGetRelationship(&vbuf, &CC->user, &CC->room);
 
        for (i = first_msg; i < Imap->num_msgs; ++i) {
index 9d8699c066dc0b6a768bd950ff03ac031d4e7926..4e48be902352e69601e8f2dbe89a3338e7f060a2 100644 (file)
@@ -103,7 +103,7 @@ void dotgoto(void) {
                readloop(readnew, eUseDefault);
                return;
        }
-       if (WC->CurRoom.view != VIEW_MAILBOX) {
+       if ((WC->CurRoom.view != VIEW_MAILBOX) && (WC->CurRoom.view != VIEW_JSON_LIST)) {
                // dotgoto acts like dotskip when we're in a mailbox view
                slrp_highest();
        }