Skip to content

feat(account-setup): show IMAP hint when POP3 is selected - #11821

Merged
wmontwe merged 1 commit into
thunderbird:mainfrom
BenjaminGROISNE:feat/pop3-warning
Nov 5, 2026
Merged

wmontwe merged 1 commit into
thunderbird:mainfrom
BenjaminGROISNE:feat/pop3-warning

Conversation

@BenjaminGROISNE

@BenjaminGROISNE BenjaminGROISNE commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Contribution Summary

Linked Issue/Ticket: Fixes #7551

Description

During account setup, when the user selects POP3 as the incoming protocol, show an info banner right under the protocol selector recommending IMAP. As requested in the issue, the message encourages IMAP rather than speaking negatively about POP3:

  • Title: "IMAP is recommended"
  • Text: "IMAP keeps your email in sync across all your devices. Choose IMAP if your email provider supports it."

Details:

  • IncomingFormItems.kt: adds a pop3_hint LazyColumn item using the existing design-system InfoBannerInlineNotificationCard, shown only when state.protocolType == POP3.
  • The hint is shown only when creating an account. The same form is used to edit existing accounts, where the protocol can't be changed, so the hint is not shown there.
  • Two new strings in feature/account/server/settings.

The issue is labelled status: needs design; per the earlier comment, I'm happy to adjust the wording or placement after design review.

Screenshots

Before After

Testing

New Compose UI tests (Robolectric) in IncomingServerSettingsContentKtTest:

  • should show IMAP hint when creating a POP3 account
  • should not show IMAP hint when creating an IMAP account
  • should not show IMAP hint when editing a POP3 account
./gradlew :feature:account:server:settings:testDebugUnitTest --tests '*IncomingServerSettingsContentKtTest'

Result: 3 tests, 0 failures.

Full check:

./gradlew test lint detekt spotlessCheck --continue

Two failures, both unrelated to this change: CameraCaptureHandlerTest (NoClassDefFoundError: android/app/Instrumentation under the parallel build; it passes when run alone) and spotlessFlexmarkCheck on a local untracked file that isn't part of this PR.

Manual check on an emulator (Pixel-size AVD, foss debug build): Get started → Add an email account → Next → Configure manually → Protocol: POP3 shows the banner; switching back to IMAP hides it.

Not run: connectedAndroidTest.

Known risks: wording and placement still need design review (status: needs design).

AI Disclosure

  • This contribution does not include any changes created or assisted by AI.
  • This contribution includes changes assisted by AI.
  • This contribution includes changes created by AI.

Contribution Checklist

  • I have read, and I affirm that my contribution adheres to Mozilla’s Community Participation Guidelines
  • This contribution is in Kotlin where possible
  • This contribution does not use merge commits
  • This contribution adheres to the existing codestyle (run gradlew spotlessCheck to check and gradlew spotlessApply to format your source code; will be checked by CI).
  • This contribution does not break existing unit tests (run gradlew testDebugUnitTest; will be checked by CI).
  • This contribution includes tests for any new functionality and maintains tests for any updated functionality.
  • This contribution adheres to our Engineering process (RFC/Technical Design/ADR)
  • This PR has a descriptive title and body that accurately outlines all changes made and contains a reference to any issues that it fixes (e.g. Closes #XXX or Fixes #XXX).

🤖 Generated with Claude Code

Show an info banner under the protocol selector during account setup
when POP3 is chosen, recommending IMAP to keep email in sync across
devices.

Fixes thunderbird#7551
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Validation Passed: All report and feature-flag labels are correctly set.

@thunderbird-botmobile thunderbird-botmobile Bot added the pr-sentinel: ready for review Passed all automated PR Sentinel checks. Ready for maintainer review. label Oct 29, 2026
@wmontwe wmontwe added the report: include Include changes in user-facing reports. label Nov 5, 2026

@wmontwe wmontwe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this great change.

@wmontwe
wmontwe merged commit a89210f into thunderbird:main Nov 5, 2026
20 of 22 checks passed
@thunderbird-botmobile

Copy link
Copy Markdown
Contributor

Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 27. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org
Hope to see you there! 🚀📱🐦

@thunderbird-botmobile thunderbird-botmobile Bot added this to the Thunderbird 27 milestone Nov 5, 2026

This branch was previously deployed

2 inactive deployments
botmobile — d0af7fff Deployed Nov 5, 2026 by wmontwe via pr-merged #680
review — d0af7fff Deployed Oct 29, 2026 by BenjaminGROISNE via label-tb-team #646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-sentinel: ready for review Passed all automated PR Sentinel checks. Ready for maintainer review. report: include Include changes in user-facing reports.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Account setup] Display "warning" message when using POP3

2 participants