     edit: (inputValues) ->
         MailboxActionCreator._setNewMailboxWaitingStatus true
         XHRUtils.editMailbox inputValues, (error, mailbox) =>
+            # set a timeout to simulate the "waiting" state
             setTimeout ->
                 MailboxActionCreator._setNewMailboxWaitingStatus false
                 if error?

            value: mailboxID

        # fetch the imap folders if necessary
        imapFolders = ImapFolderStore.getByMailbox mailboxID
        if (not imapFolders? or imapFolders.count() is 0) and mailboxID
            XHRUtils.fetchImapFolderByMailbox mailboxID

        MailboxActionCreator._setNewMailboxWaitingStatus true

        XHRUtils.createMailbox inputValues, (error, mailbox) =>
            # set a timeout to simulate the "waiting" state
            setTimeout ->
                MailboxActionCreator._setNewMailboxWaitingStatus false
                if error?
