RCVTTY(1mh)
π RCVTTY(1mh) β bestie, your mail just slid into your terminal π
okay so this is the rcvtty page from the 1mh manual, and honestly? it's giving "quiet little workhorse that announces your mail for you." let's get into it. π¦
β¨ NAME β¨
rcvtty β report new mail with nmh π
πΈ SYNOPSIS πΈ
/usr/lib/mh/rcvtty [-help] [-version] [command] [-form formatfile]
[-format string] [-width columns] [-bell | -nobell] [-newline |
-nonewline] [-biff]
π DESCRIPTION π
So like, rcvtty is the command you use to report new mail. its whole main character era is hanging out with mail filtering agents like slocal or procmail β it's basically the friend who texts you "girl your inboxβ¦" π
here's the vibe: rcvtty runs the command you name, feeding the message in as its standard input, and then it writes whatever that command outputs onto your terminal. cute, right? π«Ά
but wait β plot twist. if you don't specify a command at all (or the command you gave is, um, bogus π), then rcvtty just writes a one-line scan listing instead. and you can override the default output format of that scan listing with either the -form formatfile option or the -format string option β same energy as the equivalent options over in scan and inc. for the details, go read mh-format(5). β¨
A newline gets output before the message output, and the terminal bell gets rung after the output. if you're not about that life, the -nonewline and -nobell switches will inhibit those functions. periodt.
the -width columns switch lets you specify the width of the scan line. the default is to just use the width of your terminal. π
okay and now β on top of all the standard format escapes described in mh-format(5), rcvtty also recognizes these extra component escapes:
bodyβ string β the (compressed) first part of the body πdtimenowβ date β the current date βfolderβ string β the name of the current folder π
by default, rcvtty sends its output to every terminal on the local machine that is owned by the current user and that has given write permission as granted by the mesg(1) command. but if you pass the -biff option, then rcvtty will obey the notification status set by the biff(1) command instead. lowkey a whole personality shift. π«
ποΈ FILES ποΈ
/etc/nmh/mts.confβ nmh mts configuration file$HOME/.maildeliveryβ The file controlling local delivery/etc/nmh/maildeliveryβ Rather than the standard file
π§ CONTEXT π§
None π (yeah, nothing. empty. a void. she said "no context, only vibes")
π DEFAULTS π
-widthdefaults to the width of the terminal-newline-bell
π₯ SEE ALSO π₯
mh-format(5), rcvdist(1), rcvpack(1), rcvstore(1), slocal(1)
π BUGS π
Only two return codes are meaningful, others should be. (not me reading that and feeling personally attacked π)
and that's the whole page bestie, no notes, ate and left no crumbs π
this absolute classic is from nmh-1.8, dated 1999-04-30 β yeah she's been iconic since the 90s, and she's still serving πβ¨π«Ά
π¦ where this page comes from
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms