script for mail client v2