             }
             cmrMailbox: @props.name
         }, (data) =>
-            # TODO
-            #if @props.name == @props.currentMailbox
-            #    messageList.setState({ pages: Math.ceil(data / 10) })
-            @setState({messageCount: data})
+            @setState({
+                messageCount: data
+                pagination: FM.Pagination({
+                    total: Math.ceil(data / 10)
+                })
+            })
         )
 
     render: ->

                    id: safeID
                    className: 'panel-collapse collapse'
                },
                React.DOM.div({className: 'panel-body'}, messageList))
        )
})



    getInitialState: -> {
        messageCount: 'Loading...'
        pagination: ''
    }

    componentDidMount: ->
