I have a requirement (SpamAssassin 'training') to archive (or delete) two user's (users are junkmail
and notjunkmail
) inboxes at a given time every day if there is anything in them.
Can anyone help me with a script to do such a thing and where to put it and how to get launchd
to fire it off at 6am every morning? I can figure out the launchd
stuff; it's the moving of messages from inbox
to, say, archive
that is stumping me.
Script needs to run on the Server as these "users" will likely never log in.
Mac OS X Server 10.6 (soon to be upgraded to 10.7 if that matters)
Thanks!