node-imap
node-imap copied to clipboard
imap searching problem
Hi! Working with node-imap module I got a problem.
imap.seq.search(['ALL', ['FROM', '[email protected]']], function(err, receivedIds) {
console.log(ids)
});
doesn't return any results if message was received recently. At the same time it returns ids of messages from the same sender that were received a day before or earlier. At the same time I can get this message id by fetching imap.seq.fetch last message. And when I know it's uid I run
imap.seq.search(['ALL', ['UID', idGotFromFetch]], function(err, receivedIds) {
console.log(ids)
});
and this search returns me right results. But searching by from doesn't. Hope I was clear. Where should I look for problem's reason? Thanks!
+1
@VitaliiZhukov anything you did to resolve this ?