Wizard + test-menu: pick polling interval - #2
Merged
Conversation
The default was 5 min and there was no UI to change it short of editing config.local.json by hand. Now: - Wizard step 3 asks for a polling interval after the email addresses, with presets (30s / 1min / 5min / 15min / custom-seconds). - --test menu has a new "Change how often mailpress checks for new mail" option that re-uses the same picker and saves the result. Push notifications (Gmail Pub/Sub or IMAP IDLE) deliberately left out — ~5-second latency vs ~30-second polling isn't worth the extra setup (Pub/Sub topic + grant + 7-day watch renewal, or a whole new IMAP client). Noted as future options in lib/poll.mjs and README. https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF
Turetsky
added a commit
that referenced
this pull request
May 26, 2026
The default was 5 min and there was no UI to change it short of editing config.local.json by hand. Now: - Wizard step 3 asks for a polling interval after the email addresses, with presets (30s / 1min / 5min / 15min / custom-seconds). - --test menu has a new "Change how often mailpress checks for new mail" option that re-uses the same picker and saves the result. Push notifications (Gmail Pub/Sub or IMAP IDLE) deliberately left out — ~5-second latency vs ~30-second polling isn't worth the extra setup (Pub/Sub topic + grant + 7-day watch renewal, or a whole new IMAP client). Noted as future options in lib/poll.mjs and README. https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a polling-interval picker to the wizard and to the
--testmenu. The default was 5 min with no UI to change it short of hand-editingconfig.local.json.Wizard: Step 3 now ends with "How often should mailpress check for new mail?" — presets (30s / 1min / 5min / 15min / custom seconds).
--testmenu: new "Change how often mailpress checks for new mail" option re-uses the same picker and persists to config; prints the Stop/Start scheduled-task one-liner so the change takes effect.Push notifications (Gmail Pub/Sub
users.watch, IMAP IDLE) deliberately left out — ~5s latency vs ~30s polling isn't worth the extra Cloud Pub/Sub topic + 7-day watch renewal, or a whole new IMAP client. Noted as future options inlib/poll.mjsand the README.Test plan
mailpress --setupon the office PC; confirm the polling-interval step appears and saves the chosen value.mailpress --test→ "Change how often mailpress checks for new mail" → pick a different preset → confirmconfig.local.jsonupdates.https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF
Generated by Claude Code