 
     messageFlags = []
     fetch.on 'message', (message) =>
-                
+ 
         parser = new mailparser.MailParser()
 
         parser.on "end", (mailParsedObject) =>

            messageFlags = message.flags
            do parser.end
     
            fetch.on 'error', (error) ->
                server.logout () ->
                    console.log 'Error emitted on fetch object'
                    console.log error
                    server.emit 'error', error


Mailbox::getNewMail = (job, callback, limit=250)->
    
    ## dependences
    imap = require "imap"

            dateSent = new Date mailParsedObject.headers.date
    else
        dateSent = new Date()


# Destroy helpers

Mailbox::destroyMails = (callback) ->
    Mail.requestDestroy "mailbox", key: @id, callback

# Just to be able to recognise the mailbox in the console
Mailbox::toString = ->
