LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to disable the "you have new mail" message? (https://www.linuxquestions.org/questions/linux-general-1/how-to-disable-the-you-have-new-mail-message-19676/)

ry 04-28-2002 03:43 PM

how to disable the "you have new mail" message?
 
I would like to know how to disable the "You have new mail" message?

thanks!!!

Mara 04-28-2002 03:53 PM


 
Where does the message appear?

ry 04-28-2002 04:04 PM

in the virtual or terminal window...and yes there is really a new message in my inbox but i want to disable that feature because i regularly check my email..it just appears after typing a command, after logging in...

jeremy 04-28-2002 04:07 PM

Type "biff n" to disable mail notification. You'll want to put it in your shell startup scripts so you do not need to type it each time you login.

--jeremy

ry 04-28-2002 04:38 PM

hey,,thank you very much...anyway..do you thing putting that command at the rc.local will disable the mail notification for all users?

thanks again.!!!

jeremy 04-28-2002 05:27 PM

That would just disable it for root. To disable it for all users put it in /etc/bashrc and /etc/csh.login (There may be others depending on what shells your users use).

--jeremy

ry 04-28-2002 05:40 PM

that's great!! thank you very much!!!

jayakrishnan 04-29-2002 12:38 AM

simple create a .nohush file .

neenee 04-23-2003 02:54 AM

hm.. i know there is a proper way to disable that message, without
adding a new command to a startup script; i have done it before,
but i forgot how to, and no where i can find how to disable that
message. if someone knows of a clean way to disable it - by changing
a variable in a script somewhere from on to off or by commenting
something out, without adding a new command in a script to mask
the message, please let me know.

acid_kewpie 04-23-2003 06:18 AM

often the mail message is actually sourced with PAM, so you can try just removing it from the relevant config file in /etc/pam.d/ i had to add it in in gentoo to get that to happen.


All times are GMT -5. The time now is 02:48 AM.