question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get onupdate to work reliably

See original GitHub issue

I was under the assumption that on client.onupdate would be called when e.g a mail is changed on the server. this does work with the gmail server but quite time delayed and it does not work e.g with a standard mail server from hetzner. onupdate is basically never called for e.g flag changes or very intermittently at least.

From the documentation I assume I have to first call client.selectMailbox with condstore:true to even hope to get it working correctly. If it doesnt work with the non Gmail servers I test against, does that mean that the servers dont behave correctly ? Does anybody know how widely supported this quicksync (https://tools.ietf.org/html/rfc7162) feature is ?

Is anybody using this ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andris9commented, Jan 4, 2017

Yeah, propagating flag changes in a large email system is really complicated, it took Gmail literally years to start sending these notifications at all. If condstore is enabled then you can use the changedSince modifier - you need to keep count of the last seen mailbox.highestModseq or message.modseq and provide this value to listMessages

client.listMessages('INBOX', '1:*', ['uid', 'flags', 'modseq'], {
    changedSince: lastKnownHighestModseq
}).then((messages) => {
    messages.forEach((message) => console.log('Flags for ' + message.uid + ': ' + message.flags.join(', ')));
});
0reactions
matthiasgcommented, Jan 4, 2017

Thanks.

Since I can detect the capability I can notify users of the potential delay or polling mechanics. At least it works with gmail. Will be interesting to see whether microsoft exchange supports that, but I cannot test against our servers because SSL wont work until I get custom certs to be accepted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Cloud Functions onUpdate triggers returns ...
I have a simple function in Cloud Functions that is triggered when any update occurs on my "clients" location in my Cloud Firestore...
Read more >
GSAP onUpdate callback doesn't provide consistent progress value ...
I have a piece of code like this: tl.current = gsap.timeline({ scrollTrigger: { trigger: "#appContainer", start: "top top", end: "bottom bottom", ...
Read more >
Warning: Cannot update a component (`xxx`) while rendering ...
I have the same issue. It is caused by setting pageTitle (displayed in explorer tab and history) in each component after routing using...
Read more >
109557 - chrome.tabs.onUpdated not firing reliably - Monorail
I have an extension that tries to block browsing to a whitelist of sites. It seems to have stopped working reliably in this...
Read more >
How to Fix iPhone Stuck on Update Requested iOS 16 - UltFone
Solution 6. Update iOS 16 via Third-Party Software (100% Working Way). When the above solutions didn't work and you're still getting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found