spring-projects / spring-projects/spring-framework
Add java.time support to MimeMessageHelper
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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