                 if mailsDone isnt results.length
                     msg = "Could not import all the mail. Retry"
                     server.emit "error", new Error(msg)
-            callback()
+            localCallback()
 
 
 ###

                    msg = "The box was not fully imported."
                    server.emit 'error', new Error msg
                callback()

            server.emit "error", err if server?
            callback err

    @openInbox (err, server) =>
        return emitOnErr server, err if err
        loadNewMails server, id, =>
            @log "New Mails fetched"
            @fetchLastChanges(server, callback)
            
    loadNewMails = (server, id, localCallback) =>
        range = "#{id}:#{id + limit}"
        server.search [['UID', range]], (err, results) =>
            return emitOnErr(server, err) if err
