                 console.log err
                 server.emit "error", err
   
-    @connectImapServer (err, server) =>
-        return emitOnErr server, err if err
+    @openInbox (err, server)  =>
         MailToBe.fromMailbox @, (err, mailsToBe) =>
             if err
                 emitOnErr server, err

                server.logout()
                callback()
            else
                @loadInbox server, =>
                    fetchMails server, mailsToBe, 0, mailsToBe.length, 0
                    
    fetchMails = (server, mailsToBe, i, mailsToGo, mailsDone) =>
        @log "Import progress:  #{i}/#{mailsToBe.length}"

            unless results.length
                @log "Nothing to download"
                server.logout (err) ->
                    localCallback err
            else
                @log "#{results.length} mails to download"
                LogMessage.createImportInfo results, @, ->
