feat: configurable next action after single mail view (#300) #308

Merged
guettlibot merged 4 commits from issue-300-fix into main 2026-05-27 21:33:15 +00:00
guettlibot commented 2026-05-27 21:26:30 +00:00 (Migrated from codeberg.org)

Summary

Implements #300 — makes the "next action after single mail view" configurable in user preferences.

  • Adds AfterMailViewAction enum (nextMessage, showMailbox) to the user preferences model
  • Bumps DB schema to v36 with an after_mail_view_action column (default: nextMessage)
  • Reads the preference in EmailDetailScreen before each action (delete, archive, move, snooze, mark as unread) and either navigates to the next email or returns to the mailbox
  • Adds a new "After mail action" section in UserPreferencesScreen with a radio group

Test plan

  • Unit/widget/migration tests all pass (task check)
  • Fresh install: default is "Next message" behaviour — after delete/archive/etc., the next message opens
  • After switching preference to "Return to mailbox", actions navigate back to the email list instead
  • Existing preferences (menu position, mail view button position) are unaffected

🤖 Generated with Claude Code

## Summary Implements #300 — makes the "next action after single mail view" configurable in user preferences. - Adds `AfterMailViewAction` enum (`nextMessage`, `showMailbox`) to the user preferences model - Bumps DB schema to v36 with an `after_mail_view_action` column (default: `nextMessage`) - Reads the preference in `EmailDetailScreen` before each action (delete, archive, move, snooze, mark as unread) and either navigates to the next email or returns to the mailbox - Adds a new "After mail action" section in `UserPreferencesScreen` with a radio group ## Test plan - [ ] Unit/widget/migration tests all pass (`task check`) - [ ] Fresh install: default is "Next message" behaviour — after delete/archive/etc., the next message opens - [ ] After switching preference to "Return to mailbox", actions navigate back to the email list instead - [ ] Existing preferences (menu position, mail view button position) are unaffected 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.