From: David Levine Date: Sat, 5 Apr 2014 01:05:51 +0000 (-0500) Subject: Update context and sequences before showing messages in mhn(1), X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1f29440bc43014e91271c9a04d1ad19051c7e498?hp=0b2fa09e1dc2b9250104e6ebb634412f5799b3e0 Update context and sequences before showing messages in mhn(1), just like in mhshow(1). --- diff --git a/uip/mhn.c b/uip/mhn.c index 09aa1671..3fd2d39c 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -545,6 +545,14 @@ do_cache: mhstoreinfo_free (info); } + /* If reading from a folder, do some updating */ + if (mp) { + context_replace (pfolder, folder);/* update current folder */ + seq_setcur (mp, mp->hghsel); /* update current message */ + seq_save (mp); /* synchronize sequences */ + context_save (); /* save the context file */ + } + /* * Cache the message content */ @@ -564,14 +572,6 @@ do_cache: free (cts); cts = NULL; - /* If reading from a folder, do some updating */ - if (mp) { - context_replace (pfolder, folder);/* update current folder */ - seq_setcur (mp, mp->hghsel); /* update current message */ - seq_save (mp); /* synchronize sequences */ - context_save (); /* save the context file */ - } - done (0); return 1; }