Turning work horse script into a function to be called to every mailbox selected