Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
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.
It is now returning a new error even though nothing has been changed.
from emailjs-imap-client.
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)
- how to get new messages first on listMessages? HOT 1
- UnhandledPromiseRejectionWarning: Error: IDLE not allowed now HOT 3
- How to Listen for new emails
- An in-range update of webpack-cli is breaking the build 🚨 HOT 2
- getaddrinfo ENOTFOUND imap.cox.net HOT 3
- emailjs problem with async methods
- How can I get from all messages the attachments?
- An in-range update of pako is breaking the build 🚨 HOT 2
- Can't remove, add or set \Seen
- Self signed certificate HOT 8
- No envelope HOT 1
- How to add other parameters
- _tls2.default.connect and help wanted
- Helping
- 8bit support HOT 1
- emailjs.org website not available
- UID passed in and UID received are not equal HOT 1
- Feature: Search for multiple HEADER fields (AND)
- Please update NPM package HOT 2
- Stop condition for arriving packets is not sufficient.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emailjs-imap-client.