Cannot access ImapConnection.seq.* methods #46

ajessup opened this Issue Jan 29, 2012 · 0 comments

2 participants


I can't seem to access the .seq namespaced methods, since they try to access methods on the parent ImapConnection object, but cannot since they don't have a reference to it.


imap_connection = require('node-imap');

con = new imap_connection.ImapConnection({
    username: '',
    password: 'XXXX',
    host: "",
    port: 993,
    secure: true,
    debug: null

    con.openBox('INBOX', function(){
        fetch = con.seq.fetch(1, {'request':{'headers':true}},

Fails with:

TypeError: Object #<Object> has no method '_fetch'
    at Object.fetch (.../node-imap/imap.js:647:15)
    at Object.<anonymous> (.../imap_seq_test.js:14:19)
    at CleartextStream.<anonymous> (.../node-imap/imap.js:460:42)
    at CleartextStream.emit (events.js:42:17)
    at Array.<anonymous> (.../node-imap/imap.js:254:40)
    at EventEmitter._tickCallback (node.js:108:26)
@mscdex mscdex added a commit that closed this issue Jan 29, 2012
@mscdex Fix sequence number-based functions and do not connect to the server …
…before all event handlers are attached first

Fixes #46
Fixes #26
@mscdex mscdex closed this in b0e88cf Jan 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment