How to search an email that was sent on a specific date
How to search an email that was sent on a specific date from CLI
Problem
How to search for an email within a user's mailbox that was sent by a sender on a particular date?
Solution
1. Run the following command to get the message detail of a particular date.
$zmmailbox -z -m recipient@domain.com s -t message "Date:08/14/2023 & From:sender@domain.com"
Id Type From Subject Date ---- ---- -------------------- -------------------------------------------------- -------------- 1. 360 mess sender Testing email 08/14/23 10:55
Change date in MM/DD/YYYY format.
2. Check the message location into store.
$ zmmetadump -m recipient@domain.com -i 360
[Blob Path] /opt/zimbra/store/0/15/msg/0/360-16401.msg
Here is the message location "/opt/zimbra/store/0/15/msg/0/360-16401.msg".