Re: How to delete all local mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arthur Pemberton wrote:
> My /var/spool/mail/$username file seems to be corrupted, it is over 500
> MB, how do I purge it? Is it safe to just delete the file?
> 
You can ether delete it, or run
"cat /dev/null > /var/spool/mail/$username".

If you just delete it, you may want to re-create it. It should be
re-created by the mail program, but I have run into a few setups
that do not for some reason. You can create an empty file after
you delete it by running "touch /var/spool/mail/$username". If you
run it as root, you will have to change ownership afterwards.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux