trying to figure out a cli way to empty all email from a specific email account.
It is certainly possible to type:
mutt -f account
D
~s .*
then quit....
Is there a way to do this all from cli/cron?
trying to figure out a cli way to empty all email from a specific email account.
It is certainly possible to type:
mutt -f account
D
~s .*
then quit....
Is there a way to do this all from cli/cron?
But echo -n > /var/spool/mail/account
does the trick.
Would rm /var/spool/mail/account
do the trick ?