             action: 'account.config'
             parameters: [accountID, 'account']
             fullWidth: true
+
+        specialMboxes = specialMailboxes.map (mbox) -> account.get mbox
 
         div
             className: accountClasses, key: key,

                ul
                    role: 'group'
                    className: 'list-unstyled mailbox-list',
                    mailboxes?.map (mailbox, key) =>
                        selectedMailboxID = @props.selectedMailboxID
                        MenuMailboxItem
                            account:           account,

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'
