removed launchy; fixed errors when mail.attachments is nil