bugfix to apps/mail/inbox.js