ditesh / node-poplib

POP3 client library for Node.js
MIT License
128 stars 44 forks source link

Syntax error: Unexpected token #12

Closed giuliomoro closed 10 years ago

giuliomoro commented 10 years ago

version: poplib@0.1.6 node_modules/poplib └── optimist@0.6.1 (minimist@0.0.8, wordwrap@0.0.2)

When running node demos/demo.js --host pop.gmail.com --port 995 --username user@gmail.com --password potato --tls on --debug on --networkdebug on

I get

/home/giulio/FezzeeCorp/zapnode/node_modules/poplib/main.js:292 }); ^ SyntaxError: Unexpected token }

Engelbrite commented 10 years ago
           if (tlssock.authorized === false && 
                self.data["ignoretlserrs"] === false)
                    self.emit("tls-error", tlssock.authorizationError);

        }
    }); // should be changed to ); remove the curly brace on line 292

    socket = tlssock;
ditesh commented 10 years ago

Thanks, I'll look at it shortly.