Skip to content

Wizard + test-menu: pick polling interval - #2

Merged
Turetsky merged 1 commit into
mainfrom
claude/polling-interval
May 26, 2026
Merged

Wizard + test-menu: pick polling interval#2
Turetsky merged 1 commit into
mainfrom
claude/polling-interval

Conversation

@Turetsky

Copy link
Copy Markdown
Owner

Summary

Adds a polling-interval picker to the wizard and to the --test menu. The default was 5 min with no UI to change it short of hand-editing config.local.json.

Wizard: Step 3 now ends with "How often should mailpress check for new mail?" — presets (30s / 1min / 5min / 15min / custom seconds).

--test menu: 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 in lib/poll.mjs and the README.

Test plan

  • Run mailpress --setup on the office PC; confirm the polling-interval step appears and saves the chosen value.
  • Run mailpress --test → "Change how often mailpress checks for new mail" → pick a different preset → confirm config.local.json updates.
  • Stop/Start the scheduled task and verify the new interval is honored (check log timestamps).

https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF


Generated by Claude Code

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
Turetsky merged commit 1ccc3c6 into main May 26, 2026
1 check passed
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>
@Turetsky
Turetsky deleted the claude/polling-interval branch May 26, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants