X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshow.c;h=b1f3d3d0d9e5a328734e8ad983633d7c50175ff8;hb=bf5e3d96f882fe51157059787cd658d4a7ddd840;hp=07a05a9bfa62047905d3907df2acb14a783d0ce5;hpb=682962d94b21e120c78a52a8bdcb6aa994330a14;p=mmh diff --git a/uip/mhshow.c b/uip/mhshow.c index 07a05a9..b1f3d3d 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -295,7 +295,7 @@ do_cache: set_endian(); - if ((cp = getenv("MM_NOASK")) && !strcmp(cp, "1")) { + if ((cp = getenv("MM_NOASK")) && strcmp(cp, "1")==0) { nolist = 1; pausesw = 0; } @@ -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))))