Skip to content

Move CLI-only recipient parsing out of EmailPopulatingBuilder #683

Closed

Description

@bbottema

Context

The recipient API cleanup in #613 deliberately reduced the public EmailPopulatingBuilder surface, but retained withRecipients(String name, boolean fixedName, RecipientType type, String... addresses) for CLI and property-backed configuration.

While resolving #682, the dedicated --email:to, --email:cc, and --email:bcc commands were restored through an internal CLI facade. The remaining string-parsing bridge belongs on that same facade rather than on the supported Java builder API.

Change

  • Move the generic string-based recipient parser to the internal CLI support interface.
  • Keep withRecipients(Recipient...) and withRecipients(Collection<Recipient>) public.
  • Preserve CLI and property-backed recipient parsing.
  • Regenerate packaged CLI metadata and guard the public/internal API boundary with tests.

This removes a previously public method, so it is intentionally scheduled for the next minor release rather than the 9.1.7 patch tracked by #682.

Related: #613, #682.

Activity

  1. added this to the v9.2.0 milestone on Aug 6, 2026
  2. self-assigned this
    on Aug 6, 2026
  3. bbottema commented on Aug 6, 2026

    @bbottema
    OwnerAuthor

    Implemented in ece38c34:

    • moved the generic string-based recipient parser to the internal CLI support facade;
    • retained the object-based Recipient... and Collection<Recipient> overloads on EmailPopulatingBuilder;
    • preserved CLI and property-backed recipient parsing and regenerated the packaged CLI metadata.

    This change is isolated from #682 so v9.1.7 can remain a patch-only release. Closing as completed for v9.2.0.

  4. bbottema commented on Aug 8, 2026

    @bbottema
    OwnerAuthor

    This issue's change is now available in Simple Java Mail 9.2.0 and from Maven Central.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions