SENTSINCE and SENTBEFORE are "Date" inputs (day-month-year) per RFC 3501.  No 
timezone is allowed.

See, e.g., RFC 3501[6.4.4]:

"Messages whose [RFC-2822] Date: header (disregarding time and timezone) is 
within or later than the specified date."

doveadm search is just proxying IMAP compliant search strings, so it uses the 
RFC syntax requirements.

michael


> On 10/18/2025 11:25 AM MDT Philip Bondi via dovecot <[email protected]> 
> wrote:
> 
>  
> Hello to all:
> 
> Would someone be able to comment on the correct method to specify timezone?
> 
> [243] $ doveadm search -u [email protected] MAILBOX hover/INBOX-hover.mbx 
> SENTSINCE "2024-01-01" SENTBEFORE "01-Jan-2025"
> fa6bc10562ee846855141f00d09efc50 4092
> fa6bc10562ee846855141f00d09efc50 4093
> fa6bc10562ee846855141f00d09efc50 4094
> fa6bc10562ee846855141f00d09efc50 4095
> fa6bc10562ee846855141f00d09efc50 4096
> fa6bc10562ee846855141f00d09efc50 4097
> 
> [244] $ doveadm search -u [email protected] MAILBOX hover/INBOX-hover.mbx 
> SENTSINCE "2024-01-01" SENTBEFORE "01-Jan-2025 00:00:00 -0400"
> Fatal: Invalid search date parameter: 01-Jan-2025 00:00:00 -0400
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to