MSGCHK(1)

πŸ“¦
version 1.8 Β· 4 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

πŸ’Œ MSGCHK πŸ’Œ

okay so bestie, welcome to msgchk β€” that's the nmh manual page, section 1, and it's literally just nmh's lil check-in for incoming email. she's the friend who texts you "you have mail πŸ‘€" and honestly? iconic. ✨


✨ SYNOPSIS ✨

msgchk [-help] [-version] [-date | -nodate] [-notify all/mail/nomail ]
     [-nonotify all/mail/nomail ] [-host hostname] [-port
     portname/number] [-user username] [-sasl | -nosasl] [-saslmech
     mechanism] [-tls] [-initialtls] [-notls] [-certverify |
     -nocertverify] [-authservice service] [-snoop] [users ... ]

🌸 DESCRIPTION 🌸

so what does she actually <em>do</em>? msgchk goes and checks all the known mail drops for mail that's waiting for you. all of them. she's thorough like that. πŸ’…

and for the drops that <em>do</em> have mail for you, msgchk will tell you whether she believes you've already seen the mail in question. like, "bestie this one's new" vs "girl you literally read this already." no cap.

The -notify type switch says under what circumstances msgchk should produce a message. The default is -notify all, which says that msgchk should always report the status of the users mail drop. Other values for type include:

  • mail β€” says that msgchk should report the status of waiting mail;
  • nomail β€” says that msgchk should report the status of empty mail drops.

The -nonotify type switch has the inverted sense, so -nonotify all directs msgchk to never report the status of mail drops. This is useful if the user wishes to check msgchk's exit status. A non-zero exit status indicates that mail was not waiting for at least one of the indicated users. 🫢

If msgchk produces output, then the -date switch directs msgchk to print out the last date mail was read, if this can be determined. (if. if she can figure it out. she'll try. 😭)


πŸ¦‹ Using POP πŸ¦‹

msgchk will normally check all the local mail drops, but if the option β€œpophost:” is set in the mts configuration file β€œmts.conf”, or if the -host hostname switch is given, msgchk will query this POP service host as to the status of mail waiting. The -port switch specifies the port name or number used to connect to the POP server. If unspecified, the default is β€œpop3”. πŸ’–

To specify a username for authentication with the POP server, use the -user username switch. The credentials profile entry in mh-profile(5) describes the ways to supply a username and password. iykyk.

For debugging purposes, there is also a switch -snoop, which will allow you to watch the POP transaction take place between you and the POP server. If -sasl -saslmech xoauth2 is used, the HTTP transaction is also shown. yes she's nosy, it's called research πŸ•΅οΈ

If nmh has been compiled with SASL support, the -sasl switch will enable the use of SASL authentication. Depending on the SASL mechanism used, this may require an additional password prompt from the user (but the netrc file can be used to store this password, as described in mh-profile(5)). The -saslmech switch can be used to select a particular SASL mechanism.

If SASL authentication is successful, msgchk will attempt to negotiate a security layer for session encryption. Encrypted traffic is labelled with (encrypted) and (decrypted) when viewing the POP transaction with the -snoop switch; see post(8)'s description of -snoop for its other features. πŸ”

If nmh has been compiled with OAuth support, the -sasl -saslmech xoauth2 switch will enable OAuth authentication. The -user switch must be used, and the user-name must be an email address the user has for the service, which must be specified with the -authservice service switch. Before using this, the user must authorize nmh by running mhlogin and grant authorization to that account. See mhlogin(1) for more details. (yes you gotta do the whole permission dance first, she's not letting you in without it πŸ’…)

If nmh has been compiled with TLS support, the -tls and -initialtls switches will require the negotiation of TLS when connecting to the remote POP server.

  • The -tls switch will negotiate TLS as part of the normal POP protocol using the STLS command.
  • The -initialtls switch will negotiate TLS immediately after the connection has taken place, before any POP commands are sent or received.

Data encrypted by TLS is labeled (tls-encrypted) and (tls-decrypted) with viewing the POP transaction with the -snoop switch. The -notls switch will disable all attempts to negotiate TLS. πŸ”₯

When using TLS the default is to verify the remote certificate and SubjectName against the local trusted certificate store. This can be controlled by the -certverify and -nocertverify switches. See your OpenSSL documentation for more information on certificate verification. πŸŽ€

ngl bestie, that's a <em>lot</em> of switches for a program whose whole personality is "do you have mail." but she contains multitudes. main character energy fr fr. πŸ‘‘

πŸ“ FILES πŸ“

  • $HOME/.mh_profile β€” The user profile
  • /etc/nmh/mts.conf β€” nmh mts configuration file
  • /var/mail/$USER β€” Location of mail drop

🧚 PROFILE COMPONENTS 🧚

None

(not a single one. she's low maintenance like that πŸ“)


πŸ‘€ SEE ALSO πŸ‘€

inc(1), mh-mail(5), post(8)


⭐ DEFAULTS ⭐

  • user defaults to the current user
  • -date
  • -notify all

πŸ’œ CONTEXT πŸ’œ

None


and that's the whole page, periodt. πŸ’…βœ¨

this lil masterpiece is from nmh-1.8, dated 2016-11-02 β€” shoutout to the nmh girlies who wrote it, and to MSGCHK(1) herself for never once failing to tell you whether somebody emailed you. obsessed. πŸŽ€πŸ¦‹πŸŒΈπŸ’–
πŸ“¦ where this page comes from