Commit 2732ec4f 2732ec4fc32af0766a3ee1f55976093a42987195 by Sergey Poznyakoff

(mh_seq_add): Update current_message if the sequence being set is "cur".

Free temporary storage.
1 parent 1f90a664
......@@ -100,6 +100,9 @@ mh_seq_add (char *name, mh_msgset_t *mset, int flags)
}
*p = 0;
write_sequence (name, new_value, flags & SEQ_PRIVATE);
if (strcasecmp (name, "cur") == 0)
current_message = strtoul (new_value, NULL, 0);
free (new_value);
}
static int
......