Empty SPAMBOX for all users via Shell

You could something like:
Code:
echo "" > /home/*/path to spambox

The star represents the usernames. Then you have to specify the path to the spambox. I don't know the complete path since I do not believe in using them.
 
If your are using the standard maildir setup, something like:

ls -R /home/*/Maildir/.INBOX.spam/*

should list the contents of the spam boxes. For unread stuff use something like:

grep Subject: -R /home/*/Maildir/.INBOX.spam/new/*

rm -Rf /home/*/Maildir/.INBOX.spam/new/*

etc....
 
Back
Top