]> diplodocus.org Git - nmh/blobdiff - uip/mhn.c
Added -debug switch to pick(1) and deprecated $MHPDEBUG.
[nmh] / uip / mhn.c
index a2733ad20691a18d7526d4275b29edf1e2248e82..7363688f32501681a6e06a5d0fb9418c2b02b99e 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -542,6 +542,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
      */
@@ -561,14 +569,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;
 }