Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-28-2006, 03:00 PM   #1
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Rep: Reputation: 31
Disable commandline new mail notification

When I have a terminal open, linux often notifies me of new system mail. How can I turn this notification off?

Here is the the reason I need to do this...

There's a command I run that streams audio. Once the command is running, it continues to update stats on the commandline.

Whenever I get a system notification of new mail, my audio stream is interrupted, and I have to re-run the command to resume streaming.

So a solution is to disable mail notification, or if there's a better way of dealing with my problem, I'd appreciate knowing it.

BTW, I can't put the streaming command in the background with &

Old 11-28-2006, 04:02 PM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If you're shell is bash you should unset the MAILCHECK variable. You could add this line:
to your .bashrc file for this purpose.

To verify that this is cause of the notification, first check your shell is indeed bash:
echo $SHELL
(it should say /bin/bash)
And then just verify the MAILCHECK variable is indeed set:
To read more, open the bash manual page:
man bash
and search (press /) for MAILCHECK (use uppercase).
Old 11-28-2006, 04:47 PM   #3
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
Thanks for the full response.


echo $SHELL

does say /bin/bash


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable the new mail notification in console mode? retypedef Linux - Newbie 6 03-21-2010 04:15 AM
Gnome Mail Notification - POP3 mail always shown as new? tsiMental Linux - Software 0 09-08-2005 10:50 AM
Mail notification Maverick1182 Linux - Software 0 08-29-2004 05:45 AM
cron e-mail notification adm1329 Linux - Newbie 1 06-20-2004 07:27 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 10:16 AM > Forums > Linux Forums > Linux - General

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

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