CHECKMAIL(1)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’Œ CHECKMAIL β€” bestie, your mail is calling πŸ’–

okay so real talk, this one is a tiny little legend and you're gonna love her. it's checkmail, from the General Commands Manual section of your friendly neighbourhood Unix box. she plays a sound file when the user receives mail πŸŽ€ yes. that's the whole job. and she ate. ✨


✨ NAME ✨

checkmail β€” plays a sound file when the user receives mail πŸ””πŸ¦‹


🌸 SYNOPSIS 🌸

checkmail

that's it. no flags. no args. no drama. she simply is. πŸ’…


πŸ’« DESCRIPTION πŸ’«

so what does she actually do? checkmail peeks at the status of the user's mail drop πŸ‘€ like a lil vibe check for your inbox.

  • if new mail is waiting, checkmail runs playbucket to play a sound 🎡 and then returns an exit status of 0 πŸ₯³
  • if mail has been cleared, it returns an exit status of 2 😭
  • if there has been no change at all, it returns an exit status of 1 πŸ™ˆ
ngl the exit statuses are the whole personality here, so memorize them: 0 = new mail, 2 = cleared, 1 = no change. periodt. πŸ’–

and why does this exist? because checkmail is intended to be used with the checkCommand resource of xbiff 🧚 it's giving "little helper, big main character energy". to set that resource, you just add this line to your .Xdefaults file:

xbiff*checkCommand: checkmail

slay. that's it. that's the setup. 🌈


πŸŽ€ FILES πŸŽ€

these are the paths she cares about, bestie:

  • /usr/spool/mail/$USER β€” the user's mail drop πŸ“¬
  • $HOME/.mailstat β€” holds the previous mail drop size πŸ‘‘ (this is how she knows if anything changed)
  • $HOME/.mailsound β€” audio file to play when there's new mail 🎢

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, iykyk:


Copyright 1994 Network Computing Devices, Inc.


πŸ‘‘ AUTHOR πŸ‘‘

Greg Renda, Network Computing Devices, Inc. β€” legend behavior, honestly. πŸ™Œ


and that's the whole page, bestie πŸ’– this version is 1.9.5, straight out of the CHECKMAIL(1) era, and we're obsessed. mwah. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from