Giter Site home page Giter Site logo

Comments (11)

asutherland avatar asutherland commented on August 24, 2024

This seems like a server issue, possibly involving a limited-capability proxy that only understands enough IMAP to perform login and then hand-off the connection. For example, fastmail uses an nginx proxy that doesn't understand ID and sometimes doesn't hand-off to the real Cyrus implementation before browserbox issues its ID command.

What server are you talking to when this happens?

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Im talking to imap.mail.yahoo.com. I have 2 instances of BrowserBox, one connecting to imap.mail.yahoo.com, the other connecting to imap.gmail.com.

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Each instance of browserbox is encapsulated by its own ImapClient instance. When running them alone everything seems to be fine, but when running both ImapClients in parallel, that seems to be when the issue occurs most often.

from emailjs-imap-client.

asutherland avatar asutherland commented on August 24, 2024

Ah, yeah, I've seen various cases where Yahoo won't let me SELECT/EXAMINE the inbox temporarily. I could've sworn those manifested as NO, but I didn't keep great notes about what specifically I saw. It's also possible they've changed from NO to BAD based on how clients respond to that scenario.

And in these cases I don't think there was anything special happening like concurrent access by another client via POP3 or even IMAP. I think Yahoo just has a weird server implementation.

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Interesting, what's weird is that this error occurs for both yahoo and gmail which is why I was led to believe it may relate to concurrent connections, as Gmail has never had this error on it's own.

from emailjs-imap-client.

asutherland avatar asutherland commented on August 24, 2024

Whoops, I went into this bug biased by the server errors I've experienced; I should have looked at the screenshot more clearly. The server is claiming you actually sent "xg13mb..." as the command. Which suggests that indeed the two instances are interacting somehow.

For FxOS email we use browserbox with native TCPSocket without problems like this AFAICT, so I would suspect either whatever you're using for TCPSocket purposes or some accidental object reuse. (Failure to "new" somewhere?)

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Thank you for the replies, really appreciate it! I am using the native node TCPSocket and am using new on an instance of https://github.com/whiteout-io/imap-client . From what I can tell whiteout-io/imap-client handles all new instances correctly. Not quite sure what I could be doing wrong as Im essentially just doing var instance1 = new ImapClient();var instance2 = new ImapClient();. Hopefully this is just a case of an error on my end. Ill investigate further, if it isn't on my end Ill post here so it can be fixed :)

from emailjs-imap-client.

andris9 avatar andris9 commented on August 24, 2024

You should check what is actually written to the socket as the logged information is a derivation from the input and not actual sent bytes

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Thank you, I will check that out. Also, upon investigation of browserbox-imap I noticed the TLSSocket-Shim is initiated like this this._TCPSocket = TCPSocket;. May this be why concurrent connections are failing? e.g. a setup for new TCPSocket()

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

It is now returning a new error even though nothing has been changed.
screen shot 2015-07-22 at 1 56 20 pm

from emailjs-imap-client.

marcus433 avatar marcus433 commented on August 24, 2024

Found the issue. It appears running a selectMailbox too early or running it at the same time as login results in BrowserBox crashing and these errors then ensue. Thank you for all of your guys' help!

from emailjs-imap-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.