Renamed all standard sequences (e.g. cur->c) and made them globally changeable
[mmh] / uip / mhshow.c
index 3510120..5d5ac3e 100644 (file)
@@ -358,7 +358,7 @@ do_cache:
                ** message(s) are coming from a folder
                */
                if (!msgs.size)
-                       app_msgarg(&msgs, "cur");
+                       app_msgarg(&msgs, seq_cur);
                if (!folder)
                        folder = getcurfol();
                maildir = toabsdir(folder);
@@ -389,7 +389,7 @@ do_cache:
                                set_unseen(mp, msgnum);
 
                seq_setprev(mp);  /* set the Previous-Sequence */
-               seq_setunseen(mp, 1);  /* unset the Unseen-Sequence */
+               seq_setunseen(mp, 0);  /* unset unseen seqs for shown msgs */
 
                if (!(cts = (CT *) calloc((size_t) (mp->numsel + 1),
                                sizeof(*cts))))
@@ -446,8 +446,8 @@ 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 */
+               context_replace(curfolder, folder); /* update current folder */
+               seq_setcur(mp, mp->hghsel);        /* update current message */
                seq_save(mp);                      /* synchronize sequences */
                context_save();                    /* save the context file */
        }