                     server.logout()
                     callback()
                 else
-                    console.log "[" + results.length + "] mails to download"
+                    console.log "[#{@name}] #{results.length} mails to download"
+                    console.log "[#{@name}] Start grabing mail ids"
                     fetchOne server, results, 0, 0, results.length, 0
 
             

                        return callback(err) if err

                        if typeof mailToBe is "string"
                            callback mail
                        else
                            mailToBe.destroy (error) ->
                                return callback(err) if err
                                callback mail

        message.on "data", (data) ->
            # on data, we feed the parser

Mailbox::doImport = (job, callback) ->

    emitOnErr = (server, error) ->
        if error and server?
            server.logout () ->
                console.log error
                server.emit "error", error
  
    @connectImapServer (err, server) =>
        return emitOnErr server, err if err
