X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhshow.c;h=2a62777a4bd36b7086e6cab8929a2bc2d8c788eb;hp=e39bf65af13cbd687aff826d2e9e624124982bf4;hb=HEAD;hpb=9cf6132a6ea29968131a000bc2fb6860affac45e diff --git a/uip/mhshow.c b/uip/mhshow.c index e39bf65..2a62777 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -42,6 +42,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; /* mhparse.c */ extern char *tmp; /* directory to place temp files */ @@ -300,9 +301,6 @@ main(int argc, char **argv) if (is_selected(mp, msgnum)) set_unseen(mp, msgnum); - seq_setprev(mp); /* set the Previous-Sequence */ - seq_setunseen(mp, 0); /* unset unseen seqs for shown msgs */ - cts = mh_xcalloc(mp->numsel + 1, sizeof(*cts)); ctp = cts; @@ -363,6 +361,8 @@ main(int argc, char **argv) /* If reading from a folder, do some updating */ if (mp) { + seq_read(mp); + seq_setunseen(mp, 0); /* unset unseen seqs for shown msgs */ context_replace(curfolder, folder); /* update current folder */ seq_setcur(mp, mp->hghsel); /* update current message */ seq_save(mp); /* synchronize sequences */