mail.sh: fix longstanding size_limit function bug