MAILCHECK(1)
π MAILCHECK(1) β the mailcheck girlies' guide π
okay bestie, gather round β this is the manual page for mailcheck, from the General Commands Manual section (section 1, the "you just run it in your shell" section, iykyk). It checks all ur mailboxes so u don't have to. Slay.
β¨ NAME β¨
mailcheck β check multiple mailboxes and/or Maildirs for new mail. that's it. that's the whole job. and it ate. π
πΈ SYNOPSIS πΈ
mailcheck [-lbcsh] [-f rcfile]
π¦ DESCRIPTION π¦
okay so mailcheck is a simple, configurable tool that lets you check multiple mailboxes to see if mail exists in them. For local mail it supports both the traditional mbox format and the newer Maildir format, because it contains multitudes. π
Mail can also be checked on remote servers using either the POP3 or IMAP protocol. yes really. it's giving β¨ versatile β¨.
Typically you'd invoke mailcheck in /etc/profile or in a user-specific login script. E-mail junkies (affectionate) may also find it useful to invoke mailcheck occasionally to check for new mail in alternate mailboxes.
Fun fact: the author uses mailcheck to keep track of messages arriving in mailboxes corresponding to several mailing lists he subscribes to. main character behavior honestly π
π OPTIONS π
-lβ Runsmailcheckin login mode. If a~/.hushloginfile exists,mailcheckwill exit silently π€«. This option is intended to be used on systems that invokemailcheckfrom a global login script such as/etc/profile.-bβ Brief mode. Produces less verbose output. If a mailbox or Maildir is inside the user's home directory, only the relative path is printed to the output. short n sweet, no yapping π-cβ Use the more advanced counting method. While counting mails,mailchecklooks inside mboxes and Maildirs and counts new and unread messages separately. If an mbox/maildir does not contain any new or unread mail, it's excluded from the report. The produced output contains more valuable information, but this method is more time-consuming (worth it tho, no cap).-sβ Print a "no mail" summary. If no new mail message is found, print at least"no mail message"at the end. Only makes sense in combination with-c.-fβ Specify an alternative rc file location. If provided, the default locations (see FILES) are not checked.-hβ Print short usage information.
π CONFIGURATION π
Configuring mailcheck is simple, bestie. Upon startup, mailcheck looks for a file called .mailcheckrc in the user's home directory. If that file does not exist, the default configuration file /etc/mailcheckrc is used instead.
Lines beginning with a hash sign (#) are treated as comments and will not be processed. Lines beginning with pop3: or imap: are parsed like URLs and used to connect to network mail servers π. All other lines are treated as pathnames to mailbox files or Maildir directories.
Environment variables in the format $(NAME) will be expanded inline. For example:
/var/spool/mail/$(USER)β Will check the user's mailbox in/var/spool/mail.$(HOME)/Mailboxβ Will check the default mailbox used by qmail installations.
When connecting to POP3 or IMAP servers, the account password is not stored in the mailcheckrc file. Instead, the .netrc file in the user's home directory is used. This file, originally intended for use with ftp(1) and later used by fetchmail(1), should be readable only by the user owning it. It stores server/user/password combinations in the form:
machine servername login username password password
π bestie. seriously. that file is a whole secret. keep it locked down.
π FILES π
/etc/mailcheckrcβ This is the site-defaultmailcheckconfiguration file. It should be edited by the system administrator to meet the needs of most users on the system.~/.mailcheckrcβ This is the user-specificmailcheckconfiguration file. If it exists for a particular user, the site-default configuration file will not be used.~/.netrcβ This tellsmailcheckwhat password to use for a given server/user combination when checking POP3 or IMAP mail.
π COPYRIGHT π
- Copyright (C) 1996, 1997, 1998, 2001, Jefferson E. Noxon.
- Portions Copyright (C) 1996, Free Software Foundation, Inc.
- Portions Copyright (C) 1996, Gordon Matzigkeit.
- Portions Copyright (C) 1998, Trent Piepho.
Other copyrights may apply.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
On Debian GNU/Linux see /usr/share/common-licenses/GPL
π AUTHOR π
Mailcheck was written for Debian GNU/Linux by Jefferson E. Noxon <jeff@planetfall.com>.
π ACKNOWLEDGEMENTS π
- POP3 and IMAP support was added by Rob Funk
<rfunk@funknet.net>. - Several enhancements by Tomas Hoger
<thoger@pobox.sk>.
π BUGS π
- It is probably not a good idea to store passwords in a
.netrcfile. (not me telling u this like it's fine. it is not fine. do better than the default, bestie π) - No SSL/TLS support for POP3 and IMAP.
π₯ SEE ALSO π₯
netrc(5), mbox(5), maildir(5), login(1), fetchmail(1)
and that's the whole page, periodt. π
this absolute icon of a manpage was dated 2 July 2005, and it lives in section MAILCHECK(1) of the General Commands Manual β so like, if u ever forget which section it's chillin in, now u know π«Άβ¨
π¦ where this page comes from
- debian bookworm: mailcheck 1.91.2-5 Β· GPL-2.0-or-later
- debian trixie: mailcheck 1.91.2-6 Β· GPL-2.0-or-later
- ubuntu jammy: mailcheck 1.91.2-4 Β· GPL-2.0-or-later
- ubuntu noble: mailcheck 1.91.2-5 Β· GPL-2.0-or-later
- ubuntu questing: mailcheck 1.91.2-6
- ubuntu resolute: mailcheck 1.91.2-6build1 Β· GPL-2.0-or-later
- ubuntu stonking: mailcheck 1.91.2-6build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms