mail-attach.pl: Add main function