LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2004, 03:24 AM   #1
retypedef
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
How to disable the new mail notification in console mode?


Hi, guys

My shell is bash, and whenever I receive a mail in my spool file, I get the
prompt message - you have new mail in /path/to/spool. How can I disable this
function?

Many thx!
 
Old 05-15-2004, 10:54 PM   #2
retypedef
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Got it

It's related to these two environment variables: MAIL & MAILPATH.
 
Old 11-03-2009, 08:11 AM   #3
shogun1234
Member
 
Registered: May 2004
Posts: 226

Rep: Reputation: 15
Quote:
Originally Posted by retypedef View Post
It's related to these two environment variables: MAIL & MAILPATH.
So how do you disable it? Or simply redirect it to /dev/null?
 
Old 03-20-2010, 03:10 AM   #4
gatoatigrado
LQ Newbie
 
Registered: Aug 2007
Location: Berkeley, CA
Posts: 4

Rep: Reputation: 1
I think you can add
export MAIL=
to ~/.zshrc or ~/.bashrc
but I'm not sure.
 
Old 03-20-2010, 06:23 PM   #5
SemiBeard
LQ Newbie
 
Registered: Mar 2010
Location: Miami
Distribution: Slackware
Posts: 29

Rep: Reputation: 2
linux - to disable mail notification

try the biff command: 'biff n'

Quote:
Originally Posted by retypedef View Post
Hi, guys

My shell is bash, and whenever I receive a mail in my spool file, I get the
prompt message - you have new mail in /path/to/spool. How can I disable this
function?

Many thx!
 
Old 03-20-2010, 07:21 PM   #6
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
SemiBeard, useful one, thanks.
 
Old 03-21-2010, 04:15 AM   #7
gatoatigrado
LQ Newbie
 
Registered: Aug 2007
Location: Berkeley, CA
Posts: 4

Rep: Reputation: 1
SemiBeard, that sounds like a better solution, but it doesn't work with zsh ("biff: command not found"). Do you know if there is a more modern version? Thanks much.
 
  


Reply

Tags
bash, console, cron, mail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you disable console mode? shuego Debian 8 12-08-2005 06:50 PM
Gnome Mail Notification - POP3 mail always shown as new? tsiMental Linux - Software 0 09-08-2005 10:50 AM
how do I disable graphics acceleration in console mode lemuel Linux - General 4 01-10-2005 04:57 PM
Booting up in X server... how do I disable it or fall back to console mode? Delmarc Linux - Newbie 3 09-06-2003 08:23 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration