From: David Levine Date: Thu, 24 May 2012 03:16:14 +0000 (-0500) Subject: Update the current folder and current message and synchronize X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8f0a7e37be571d7cf8152306ed1e8f1c03ba15ec Update the current folder and current message and synchronize sequences before showing the messages instead of after. This way, the context will be updated even if the user exists while viewing the messages. --- diff --git a/uip/mhshow.c b/uip/mhshow.c index eb9c4129..0d396b43 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -425,6 +425,14 @@ do_cache: } } + /* 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 */ + } + /* * Show the message content */ @@ -437,14 +445,6 @@ do_cache: free ((char *) 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; }