{"id":225,"date":"2007-07-19T03:13:01","date_gmt":"2007-07-19T02:13:01","guid":{"rendered":"http:\/\/www.malcolmhardie.com\/weblogs\/angus\/2007\/07\/19\/disable-you-have-new-mail-terminal-message\/"},"modified":"2025-02-01T03:04:16","modified_gmt":"2025-02-01T03:04:16","slug":"disable-you-have-new-mail-terminal-message","status":"publish","type":"post","link":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/2007\/07\/19\/disable-you-have-new-mail-terminal-message\/","title":{"rendered":"Disable &#8220;You have new mail&#8221; terminal message"},"content":{"rendered":"<p>By default in linux you get a message saying something like<\/p>\n<p><tt>You have new mail in<\/tt><\/p>\n<p>when you log into a linux machine.<\/p>\n<p>Sometimes this gets annoying because you always have new mail, or because there seems to be a delay while checking the mail or because the mail is actually stored on some kind of remote disk.<\/p>\n<p>Disabling this setting is easy. Simply include<\/p>\n<p><tt>unset MAILCHECK<\/tt><\/p>\n<p>in your .bashrc file (for login shell) or .bash_profile (for non-login shells, i.e. ssh) and the message shouldn&#8217;t appear.<\/p>\n<p>For me it speeds up login for my linux server and removes clutter.<br \/>\nI got this from:<\/p>\n<p><a href=\"http:\/\/www.savarese.org\/patches\/bash.html\">http:\/\/www.savarese.org\/patches\/bash.html<\/a><\/p>\n<p>There is also a more detailed explanation that I found here:<\/p>\n<p><a href=\"http:\/\/www.cygwin.com\/ml\/cygwin\/1998-08\/msg00365.html\">http:\/\/www.cygwin.com\/ml\/cygwin\/1998-08\/msg00365.html<\/a><\/p>\n<p>This page explans the difference between .bashrc and .bash_profile:<\/p>\n<p><a href=\"http:\/\/joshstaiger.org\/archives\/2005\/07\/bash_profile_vs.html\"> http:\/\/joshstaiger.org\/archives\/2005\/07\/bash_profile_vs.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default in linux you get a message saying something like You have new mail in when you log into a linux machine. Sometimes this gets annoying because you always have new mail, or because there seems to be a delay while checking the mail or because the mail is actually stored on some kind [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[20,45,48,67],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-linux","tag-mail","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":1,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":1471,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/225\/revisions\/1471"}],"wp:attachment":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}