$MAIL  –  Path to a mail file or directory

$MAIL contains the path to a file or a Maildir-format directory. If $MAILPATH is not set, then Bash informs the user when new mail arrived in $MAIL.

Examples

Check $HOME/.inbox for incoming mail every 10 seconds
1
2
3
MAIL=~/".inbox"
MAILCHECK=10
# Now bash will notify you when ~/.inbox changes
BashSupport Pro is a Bash IDE with support for $MAILtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal