add server script to extract email data