mail-attach.pl: Use state feature