spring-projects / spring-projects/spring-framework

Add java.time support to MimeMessageHelper

Open
#36,936 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core status: waiting-for-triage
Dominant language
Java
Stars
60.2k
Forks
38.8k
Avg merge
5d 2h
Merged PRs (30d)
27

Description

org.springframework.mail.javamail.MimeMessageHelper currently only supports the deprecated java.lang.Date class for setSentDate.

While this is clearly because jakarta.mail.internet.MimeMessage is the same, it would be helpful for the helper to provide conversion from e.g. java.time.Instant, so callers do not need to suppress warnings when using it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with org.springframework.mail.javamail.MimeMessageHelper and its setSentDate method, then inspect the surrounding mail helper tests if available. Add support for converting a java.time.Instant without requiring callers to use the deprecated java.lang.Date API, and verify the existing date behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.