 RefreshIndicator = require './menu_refresh_indicator'
 
 {Dispositions, SpecialBoxIcons, Tooltips} = require '../constants/app_constants'
+
+
+# This is here for a convenient way to fond special mailboxes names.
+# NOTE: should we externalize them in app_constants?
+specialMailboxes = [
+    'inboxMailbox'
+    'draftMailbox'
+    'sentMailbox'
+    'trashMailbox'
+    'junkMailbox'
+    'allMailbox'
+]
+
 
 module.exports = Menu = React.createClass
     displayName: 'Menu'

            action: 'account.config'
            parameters: [accountID, 'account']
            fullWidth: true

        div
            className: accountClasses, key: key,

                ul
                    role: 'group'
                    className: 'list-unstyled mailbox-list',
                    mailboxes?.filter (mailbox) =>
                        mailbox.get('id') in specialMboxes
                    .map (mailbox, key) =>
                        selectedMailboxID = @props.selectedMailboxID
                        MenuMailboxItem
                            account:           account,
                            mailbox:           mailbox,
                            key:               key,
                            selectedMailboxID: selectedMailboxID,
                            refreshes:         refreshes,
                            displayErrors:     @displayErrors,
                    .toJS()
                    mailboxes?.filter (mailbox) =>
                        mailbox.get('id') not in specialMboxes
                    .map (mailbox, key) =>
                        selectedMailboxID = @props.selectedMailboxID
                        MenuMailboxItem
                            account:           account,
