]> diplodocus.org Git - nmh/commitdiff
sortm.c: Flip get_fields()'s logic to simplify.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 1 May 2017 17:33:15 +0000 (18:33 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 1 May 2017 22:06:46 +0000 (23:06 +0100)
uip/sortm.c

index 2a711199a19600948b38fc9ec10577f318056953..6c436ba761ccf40844f2f078f58024e5d53ea61a 100644 (file)
@@ -431,10 +431,9 @@ get_fields (char *datesw, int msg, struct smsg *smsg)
            if (strcmp (subjsort, "subject") == 0) {
                while ((c = *cp)) {
                    if (! isspace((unsigned char) c)) {
            if (strcmp (subjsort, "subject") == 0) {
                while ((c = *cp)) {
                    if (! isspace((unsigned char) c)) {
-                       if(uprf(cp, "re:"))
-                           cp += 2;
-                       else
+                       if(!uprf(cp, "re:"))
                            break;
                            break;
+                        cp += 2;
                    }
                    cp++;
                }
                    }
                    cp++;
                }