Linuxdoc Linux Questions
Click here to ask our community of linux experts!
Custom Search

11.13. New Mail

Several people have sent me methods for checking whether or not they had new e-mail. Most of them relied on programs that aren't on every system. Then I received the following code from Henrik Veenpere: cat $MAIL |grep -c ^Message-. This is simple and elegant, and I like it.