script for mail client