[
https://issues.apache.org/jira/browse/JAMES-3666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed JAMES-3666.
---------------------------------
Resolution: Fixed
This had been merged
> DSNBounce exception when no Date header
> ---------------------------------------
>
> Key: JAMES-3666
> URL: https://issues.apache.org/jira/browse/JAMES-3666
> Project: James Server
> Issue Type: Bug
> Components: Matchers/Mailets (bundled)
> Affects Versions: master
> Reporter: Karsten Otto
> Priority: Minor
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> When the DSNBounce mailet processes a mail without a Date header, it fails
> with the exception
> java.time.temporal.UnsupportedTemporalTypeException: Unsupported field:
> OffsetSeconds
> because the LocalDateTime used to construct the new date does not include
> timezone information required by the date formatter.
> The fix is to construct the new date via ZonedDateTime instead.
> There is actually a unit test for this, but the MimeMessageBuilder adds a
> Date header by default if not specified. The test fix is to explicitly remove
> the Date header after building.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]