another bugfix to apps/mail/inbox.js