     @on 'MessageShouldBeSent', ({formOutput,callback})=>
       @prepareMessage formOutput, callback, newMessageBar
 
+    @on 'RefreshMessages', -> newMessageBar?.emit 'RefreshButtonClicked'
+
     newMessageBar.on 'MessageShouldBeDisowned', do =>
       if not @selection
         newMessageBar.disableMessageActionButtons()


    @on 'MessageShouldBeSent', ({formOutput,callback})=>
      @prepareMessage formOutput, callback

  fetchMessages:(options, callback)->
    KD.whoami().fetchMail? options, callback


    KD.remote.api.JPrivateMessage.create messageDetails, callback

  refreshMessages:->
    @emit "RefreshMessages"

  prepareMessage:(formOutput, callback, newMessageBar)->
    {body, subject, recipients} = formOutput

