mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.15k stars 380 forks source link

imap searching problem #567

Open VitaliiZhukov opened 8 years ago

VitaliiZhukov commented 8 years ago

Hi! Working with node-imap module I got a problem.

imap.seq.search(['ALL', ['FROM', 'email@gmail.com']], 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!

Dakshansh commented 1 year ago

+1

Dakshansh commented 1 year ago

@VitaliiZhukov anything you did to resolve this ?