From 8f0a7e37be571d7cf8152306ed1e8f1c03ba15ec Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 23 May 2012 22:16:14 -0500 Subject: [PATCH] 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. --- uip/mhshow.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/uip/mhshow.c b/uip/mhshow.c index eb9c412..0d396b4 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; } -- 1.7.10.4