emersion / go-imap

📥 An IMAP library for clients and servers
MIT License
2.1k stars 297 forks source link

[V2] Got empty email ID list by c.UIDSearch() or c.Search() #632

Closed wms15391 closed 3 months ago

wms15391 commented 4 months ago

Hi, I need to search emails that not saved. I can get email info with imap.SeqSetNum(1) and c.Fetch, so connect successful No err but c.UIDSearch() or c.Search() return []. By other way I can get them like php-imap, I found UID of this mailbox so large such as 1712632320

emersion commented 4 months ago

Will need more details here, such as a link to the code and network logs.

wms15391 commented 3 months ago

I set ReturnMin,ReturnMax,ReturnAll,ReturnCount of &imap.SearchOptions false. Now it work, thanks