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
ability to set imap_idle_notify_interval at setup time #129
Comments
Can you elaborate about what makes the default not reasonable?
(As far as I know, this setting does not affect new mail notifications.) |
Have you actually observed a battery problem? I ask because on my phone I have K-9 set up with three separate IMAP accounts (all to my Mail-in-a-Box) and my battery life has been great. I sort of wonder if those IDLE refreshes are actually occurring every two minutes at all? |
Yes, imap_idle_notify_interval does work under Dovecot. To debug: You should see output (here I set imap_idle_notify_interval = 1 mins):
Default is 2 mins: I'm not sure if IMAP IDLE works under K-9. On Thu, Aug 7, 2014 at 6:41 AM, Joshua Tauberer notifications@github.com
|
Well that's what I mean. I don't know if mobile devices actually have this problem anymore. Would be cool if we could measure the traffic before making the change to the config. Would you be up for trying, using e.g. tcpdump to record all of the traffic? Might require having a dedicated box so that IMAP traffic on a real account that's transferring email doesn't get in the way. |
I looked into this carefully. The interval of 2min does result in messages being sent on that interval. Details here: I'll try a longer interval for my own mail for a while to see if I notice any issues. While looking I also saw that K-9 separately polls every 90 seconds if the Drafts folder doesn't exist --- until it's created. So I'll be revising Mail-in-a-Box to create that folder when new accounts are created. |
I installed k9 on a Nexus 5 phone. There was negligible impact on battery (measured by gsam app) with Dovecot at default IDLE (2 min) -- tcpdump did show IDLE traffic at 2 min intervals. On August 9, 2014 9:53:28 AM PDT, Joshua Tauberer notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
Thanks for looking into this! I updated the blog post with your note. Since we don't have evidence there's a real problem, I'll change the interval from 2 minutes to 4 minutes for good measure, staying below the point where I think maybe there might be timeouts somewhere between the ends of the connection. |
llchen223 commentedAug 6, 2014
It would be nice to be able to set imap_idle_notify_interval to something reasonable at setup time.
The text was updated successfully, but these errors were encountered: