Which method is being used to store email? That is, mbox or Maildir?
On a Maildir system, the root user could just cp the messages from the user's folder (~user/Spam/new/ or cur/) to the spam@ folder...or mv them and chown them to the spam@ user. No forwarding or compressing required. I've no clue how (or if) it's possible to manipulate email messages that way in an mbox storage scheme.
In
I find an entry in the NOTES section beginning with
Quote:
Procmail can also be invoked to postprocess an already filled system mailbox
|
that includes a script for (maybe) doing what you've asked about.
Oh.
for details on procmail recipes.