fetch time based mail
How to fetch time based in since method? for ex: March 25, 2019 12pm how can I handle this?
In order to search by date and time, your IMAP server needs to support the SORT capability, which provides an ARRIVAL search criteria (I believe you may have to use .sort() to utilize the new search critera) that utilizes both date and time.
If you're connecting to gmail, I believe you can use their custom search (X-GM-RAW search criteria) which also supports specific times, but you have to use UNIX timestamps. For example:
const timestamp = someDate.getTime() / 1000 | 0;
imap.search([ ['X-GM-RAW', `older:${timestamp}`] ], (err, results) => {
// ...
});

the 'X-GM-RAW' doesn't work in node project, the version of imap is 0.8.19
@liangmark It would only work if you're connecting to gmail.