-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMAP IDLE - unique id not found #199
Comments
Hi @HelloSebastian , However I have a few questions:
I guess it should be a mixture of both? I hope to hear your thoughts and thanks again for your time and support! Best regards, |
Hi @Webklex, sorry for leaving the issue still open! I can not explain why it did not work. I tried it again a few days later and it worked.
I find the different numbers of a message very confusing. |
As I understand it, a message can have three "numbers" assigned to it.
|
Thanks, looks like we think alike :) Regarding 2. Message ID: I have the same problem, I don't know how to handle the <>. Removing them would be nice but could also break something somewhere else. I'm not sure why they are there... It could be possible that the syntax is equal to "from" or "to" (aka "Some Name < email / message ID>") but I haven't seen something like this in the wild and can't find something about it inside the RFC. If used as part of a query the <> are meaningless (at least if you are using dovecot).. I'm kind of lost and can't decide.. |
Hi @Webklex, I found something about the message id and the angle brackets. See my answer: #197 (comment) |
Describe the bug
Hi @Webklex,
I am trying to use the IDLE function of IMAP. Folder provides the method
idle(callback, ...)
. Unfortunately the method always gives me the error message "unique id not found".I took a closer look at the method and found out that the value
EXISTS
is evaluated. If I interpret the specification of IMAP correctly, thenEXISTS
tells how many e-mails are in the respective folder. However, in the idle method, the number of emails (EXISTS) is used as UID to find out the new email. In my mailbox, the number is not equal to the UID and thus no email is found.Folder also has a
getStatus()
method that returns the next UID by"uidnext"
. I tried to find my new email with this UID, but also without success.Am I doing something wrong or did I not understand something correctly?
Used config
Please provide the used config, if you are not using the package default config.
I use the default configuration
Code to Reproduce
The troubling code section which produces the reported bug.
Desktop / Server (please complete the following information):
Additional context
Here is my modified idle method:
Maybe the method should also check if IDLE is available from the IMAP server. I have added this check:
The text was updated successfully, but these errors were encountered: