From: Ralph Corderoy Date: Mon, 1 May 2017 17:33:15 +0000 (+0100) Subject: sortm.c: Flip get_fields()'s logic to simplify. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/00c626ff05455c94d926c31371ea966abf7abc1e?hp=ab6e546854f67cf582fd67a3d54813fce5aa34ac sortm.c: Flip get_fields()'s logic to simplify. --- diff --git a/uip/sortm.c b/uip/sortm.c index 2a711199..6c436ba7 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -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(uprf(cp, "re:")) - cp += 2; - else + if(!uprf(cp, "re:")) break; + cp += 2; } cp++; }