urunni88 opened a new pull request, #30537:
URL: https://github.com/apache/camel/pull/30537

   # Description
   
   Fixes [CAMEL-27199](https://issues.apache.org/jira/browse/CAMEL-27199).
   
   The fixed-date form of the `searchTerm.fromSentDate`, `toSentDate`, 
`fromReceivedDate` and `toReceivedDate` options was parsed with `yyyy-MM-dd 
HH:mm:SS`. In `SimpleDateFormat`, `SS` is milliseconds, so `14:30:45` became 
`14:30:00.045`, and for example a mail sent at `14:30:10` matched 
`fromSentDate=2026-11-18 14:30:45`.
   
   - `MailConverters` now uses `yyyy-MM-dd HH:mm:ss`, and the 
`SimpleSearchTerm` javadoc says the same.
   - `MailConvertersSearchTermDateTest` checks `fromSentDate` and `toSentDate` 
against mails sent a few seconds before and after the given time. Both tests 
fail without the fix.
   - `mail-component.adoc` describes the two date forms (`now` with an optional 
offset, or a fixed `yyyy-MM-dd HH:mm:ss` date), instead of pointing to a table 
the page does not have.
   
   The `fetchSize` / `maxMessagesPerPoll` docs point from the ticket is left 
for a separate change.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   https://issues.apache.org/jira/browse/CAMEL-27199
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] This PR was prepared with the help of Claude (Anthropic), credited 
with a `Co-authored-by` trailer in the commit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to