X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshow.c;h=2a62777a4bd36b7086e6cab8929a2bc2d8c788eb;hb=53774c2aaf168871f5595392c7ffc5ce953f4cf2;hp=be9cd45448109e71f27c571d31e2351391cf8c86;hpb=6e4f8128fe078a3e54f5c92d27c31acc7b8f9fd8;p=mmh diff --git a/uip/mhshow.c b/uip/mhshow.c index be9cd45..2a62777 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -301,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; @@ -364,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 */