Delete mailbox default user

Alexanderonline

Verified User
Joined
Mar 14, 2005
Messages
21
Location
Boxmeer, The Netherlands
Hi all,

Each user in Da gets an default mailbox (emailadres: username) in /var/spool/mail/username. A lot of cronmail are dropped by the system in that box, and for some customers this gets big (~200mb). I can't empty the box in DA, how can i do it with ssh?
Can i do:
Code:
echo "" > /var/spool/mail/username
?
I think it is not the best way, beceause a customer of us gets the folowing error (it was fixed a few hours later automatically i think):
Code:
ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: SELECT failed: Can't open INBOX (file /var/spool/mail/psycho): not in valid mailbox format

What's the solution?

Thanks a lot,

Alexander
 
Alexanderonline said:
Code:
echo "" > /var/spool/mail/username

What's the solution?

Thanks a lot,

Alexander

Ever thought of creating a new empty mailbox, copying it somwhere for later use and when you want to clear a mailbox you just copy the saved one over the mailbox you want empty?

Please note I've not tried this so it might not work.

Onno
 
A blank mailbox should be find; do you get that with your echo code? Or do you get a mailbox with double quotes in it?

We just remove the mailbox.

It will be recreated the next time it's called.

Jeff
 
Back
Top