Does anyone know of a way to remove dated e-mail from /var/mail? For example, let's say I want to remove any e-mail older than two months, but keep any newer e-mail. How would I do this?
Good question!
I sometimes use:
# mailx
? delete [msglist]
where msglist can be:
. name of a user (ex. delete user1)
. msg number1[-number2] (ex. delete 12, or delete 12-15)
. /string (in subject) = (ex. delete /blabla)
. :type (d(eleted), n(ew), o(ld), r(ead), u(nread)) = (ex. delete )
1) Check before with
? header [msglist]
2) notice msg number range(s) that you want to delete
3) use delete <number-range>
Regards,
Jacques
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.