My script will be run locally on the server. I suppose what I was going to do was download the mail from the mailbox to my script with a POP client module (deleting them from the mailbox afterwards). Then store and mess with the messages within my own database system - then use a POP server module messages to the users' email clients.