$MAILPATH  –  List of Filenames to Check For Mail

$MAILPATH is a colon-separated list of filenames, which are checked for mail by the shell.

Examples

Check $HOME/.inbox for incoming mail every 10 seconds
1
2
3
MAILPATH=~/".inbox?Hey, you've got mail in \$_"
MAILCHECK=10
# Now bash will notify you when ~/.inbox changes
BashSupport Pro is a Bash IDE with support for $MAILPATHtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal