X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fnew.c;h=21435b344928d3acdbbeb65f482e0aa197e500c1;hp=efbea0439c648920c263e7e20142328eedfcee8b;hb=93fa896ceb5fbebe2f1f6e6e36419a13f8ffd99f;hpb=ac3066d2d563ce3b9de66195f6818eecb594fec2 diff --git a/uip/new.c b/uip/new.c index efbea04..21435b3 100644 --- a/uip/new.c +++ b/uip/new.c @@ -33,6 +33,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static enum { NEW, FNEXT, FPREV, UNSEEN } run_mode = NEW; /* @@ -119,7 +121,10 @@ get_msgnums(char *folder, char *sequences[]) */ if (seq_in_list(f.name, sequences)) { this_msgnums = trimcpy(f.value); - if (msgnums == NULL) { + if (strlen(this_msgnums) == 0) { + free(this_msgnums); + continue; + } else if (msgnums == NULL) { msgnums = this_msgnums; } else { old_msgnums = msgnums;