node-imap icon indicating copy to clipboard operation
node-imap copied to clipboard

imap searching problem

Open VitaliiZhukov opened this issue 8 years ago • 2 comments

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!

VitaliiZhukov avatar Aug 24 '16 17:08 VitaliiZhukov

+1

Dakshansh avatar May 16 '23 12:05 Dakshansh

@VitaliiZhukov anything you did to resolve this ?

Dakshansh avatar May 16 '23 12:05 Dakshansh