Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-08-2008, 03:35 AM   #1
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
Truncate mailbox

Hai all,

I have 3 users in my production environment who will be getting mails regualrly.. how can I safetly truncate the mail box of the user .. I dont need the old mails..

Guide please

Old 01-08-2008, 03:36 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
It might depend on the mailbox, but the usual ones I see are just regular files, and if they are missing, the program re-creates the file when needed. So basically you could just remove the mailbox file, if you mean that. A better practise of course is to move it away and see what happens - if it causes trouble, move the file back.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
truncate help munna_dude Programming 8 10-18-2007 09:24 PM
how to truncate munna_dude Programming 5 07-25-2007 11:56 PM
how can i truncate this munna_dude Linux - Networking 1 06-15-2007 11:42 PM
how can i truncate this munna_dude Programming 24 04-12-2007 03:44 AM
how to use truncate sureshbabu Linux - Newbie 1 10-29-2003 04:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration