Solved

You have mail! error

Posted on 2000-04-06
1
173 Views
Last Modified: 2013-12-16
Everytime that login or any other user it will state that you have mail.  Even if there are no messages or no new messages it will still state this when telneting in to the system.  When using mail instead of pine to view mail you can see the internal fodler data message that it is counting as a message?  Is there a simple way to tell the message to display only if there are more than ONE instead of zero messages?
0
Comment
Question by:LedZep37
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 2694160
It's login that prints the "You have mail" message and from the man page for login it says that, "the  file  with the user's name in /usr/spool/mail will be checked, and a message printed if it has non-zero length." Short of hacking login, or enabling a quiet login via ".hushlogin" (see "man login") you'll get the message if there is a non-zero sized mbox.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now