FIX: Calculate email attachment size limit correctly (PR #11321)

GitHub