projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Alias: Removed the address group `*', which meant everyone on the system.
[mmh]
/
uip
/
mhshow.c
diff --git
a/uip/mhshow.c
b/uip/mhshow.c
index
3510120
..
b1f3d3d
100644
(file)
--- a/
uip/mhshow.c
+++ b/
uip/mhshow.c
@@
-295,7
+295,7
@@
do_cache:
set_endian();
set_endian();
- if ((cp = getenv("MM_NOASK")) && !strcmp(cp, "1")) {
+ if ((cp = getenv("MM_NOASK")) && strcmp(cp, "1")==0) {
nolist = 1;
pausesw = 0;
}
nolist = 1;
pausesw = 0;
}
@@
-358,7
+358,7
@@
do_cache:
** message(s) are coming from a folder
*/
if (!msgs.size)
** 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);
if (!folder)
folder = getcurfol();
maildir = toabsdir(folder);
@@
-389,7
+389,7
@@
do_cache:
set_unseen(mp, msgnum);
seq_setprev(mp); /* set the Previous-Sequence */
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))))
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) {
/* 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 */
}
seq_save(mp); /* synchronize sequences */
context_save(); /* save the context file */
}