PREV(1)

πŸ’– PREV(1) β€” the prev girlies' manual πŸ’–

okay so bestie, welcome to the General Commands Manual entry for prev(1) β€” yes that's the manual name, and yes it's iconic, sit down, we're doing this 🌸


✨ NAME ✨

prev β€” show the previous nmh message πŸ¦‹


✨ SYNOPSIS ✨

prev [-help] [-version] [+folder] [-showproc program] [-showmimeproc
     program] [-header | -noheader] [-checkmime | -nocheckmime]
     [switches for showproc or showmimeproc]

✨ DESCRIPTION ✨

so prev literally just performs a show on the previous message in the folder you picked (or the current one if you didn't pick, no pressure 🫢).

like show, it hands off any switches you pass to the program named by showproc or showmimeproc β€” that's the program that actually gets called to list the message for you. slay, delegation πŸ’…

and fr fr, this command is almost exactly equivalent to show prev. that's it. that's the whole thing. so if you want all the details, go read the manual entry for show(1) β€” it's the main character here, prev is just its cute little sister πŸ‘‘


✨ FILES ✨

  • $HOME/.mh_profile β€” the user profile 🌈

✨ PROFILE COMPONENTS ✨

these are the profile bits prev peeks at, no cap:

  • Path: β€” to determine the user's nmh directory
  • Current-Folder: β€” to find the default current folder
  • showproc: β€” program to show non-MIME messages
  • showmimeproc: β€” program to show MIME messages

✨ SEE ALSO ✨

(the little sibling duo + the big one, we love a family πŸ’œ)


✨ DEFAULTS ✨

here's what happens when you just... don't specify anything, bestie:

  • +folder defaults to the current folder
  • -checkmime
  • -header

✨ CONTEXT ✨

okay so context matters, literally:

  • if you specify a folder, that folder becomes the current folder πŸŽ€
  • and the message that gets shown β€” aka the previous message in sequence β€” becomes the current message ⭐

so it's a whole vibe shift for your session, noted.


✨ BUGS ✨

πŸ’€ okay so here's the tea and you need to hear it:

prev is really a link to the show program. that's it, that's the whole trick.

which means β€” and this is the important part β€” if you make a link to prev and that link is not called prev, your link will act like show instead. not prev. just show. the whole previous-message thing? gone. poof. πŸ™ˆ

to circumvent this, add a profile-entry for the link to your nmh profile and add the argument prev to the entry. that's the fix, that's the whole fix, go do it πŸ’…


✨ THE CUTE SIGN-OFF ✨

this page came to you from nmh-1.8, dated 1999-04-30 β€” yes she's a vintage queen and she still ate, no notes πŸ‘‘πŸ’–

stay previous-message-pilled, bestie, and go read show(1) fr fr πŸŒΈπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from