Dave's Brain

Browse - computer tips - linux list the mail you have waiting

Date: 2009oct15
OS: Linux

Q.  How can I list the mail I have without getting into the interactive
program?

A.  Do this command:

	mail </dev/null

And you'll see the (first 20) headers of the your waiting mail.

You can even do it on a web page:

	#!/bin/sh
	echo "Content-Type: text/plain"
	echo
	mail -u MY_USER_ID </dev/null
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.