From 1f29440bc43014e91271c9a04d1ad19051c7e498 Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 4 Apr 2014 20:05:51 -0500 Subject: [PATCH] Update context and sequences before showing messages in mhn(1), just like in mhshow(1). --- uip/mhn.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; } -- 2.56.0