How to get rid of mail message?

Robert Heller heller at deepsoft.com
Fri Feb 25 16:07:00 UTC 2022


At Fri, 25 Feb 2022 16:44:04 +0100 bo.berglund at gmail.com, "Ubuntu user technical support,? not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> I have started to see a pop-up message in my terminal with the following text:
> 
> You have new mail in /var/mail/<username>
> 
> If I look at this (it is actually not an  email, it is just a text file) it
> seems to contain output from an application which is scheduled to run hourly by
> at.
> I  would like to know how I can nuke these popup messages, which are totally
> bogus.
> 
> Can I just delete the file itself or will it be recreated?
> Or is there a system call to disable the funcion altogether?

That file (/var/mail/<username>) actually is the mail spool for <username>.  I 
presume you are logged in as <username>, in which case you you can read the 
mail (yes, it is a text file, since that is how a Linux/UNIX mail spool is 
formatted).  Using an E-Mail client like /usr/bin/mail or Mutt will actually 
access that file as a  mail spool (inbox).



> 
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                                               




More information about the ubuntu-users mailing list