                 if error?
                     LayoutActionCreator.alertError "#{t("message action delete ko")} #{error}"
                 else
-                    @redirect
-                        direction: 'first'
-                        action: 'account.mailbox.messages'
-                        parameters: [@props.selectedAccount.get('id'), @props.selectedMailboxID, 1]
-                        fullWidth: true
+                    if @props.callback
+                        @props.callback()
+                    else
+                        @redirect
+                            direction: 'first'
+                            action: 'account.mailbox.messages'
+                            parameters: [@props.selectedAccount.get('id'), @props.selectedMailboxID, 1]
+                            fullWidth: true
+
     onToggleCc: (e) ->
         toggle = (e) -> e.classList.toggle 'shown'
         toggle e for e in @getDOMNode().querySelectorAll '.compose-cc'

        @getDOMNode().scrollIntoView()
        if @state.composeInHTML
            if Array.isArray(@state.to) and @state.to.length > 0 and @state.subject isnt ''
                node = @refs.html.getDOMNode()
                jQuery(node).focus()
                if not @props.settings.get 'composeOnTop'
                    node = node.lastChild

                @refs.subject.getDOMNode().focus()

        if valid
            node = @refs.html?.getDOMNode()
            if node?
                if @state.composeInHTML
                    message.html = node.innerHTML
                    try
                        message.text = toMarkdown(message.html)
                    catch
                        message.text = node.textContent or node.innerText
                else
                    message.text = node.value.trim()

            if not isDraft and @_saveInterval
                window.clearInterval @_saveInterval
