use MAX_VISIBLE_MAILS_LIMIT instead of  magic number