{ NULL, 0 }
};
+char *version=VERSION;
+
static enum { NEW, FNEXT, FPREV, UNSEEN } run_mode = NEW;
/*
for (state = FLD2;;) {
switch (state = m_getfld2(state, &f, fp)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
+
case FLD2:
/*
** if it's in a sequence we want,
*/
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;