postalsys / imapflow

IMAP Client library for EmailEngine Email API (https://emailengine.app)
https://imapflow.com
Other
353 stars 59 forks source link

doc bug, fetchOne(), example #118

Closed stheine closed 1 year ago

stheine commented 1 year ago

Describe the bug

you document

// fetch UID for all messages in a mailbox
let lastMsg = await client.fetchOne('*', {uid: true})

but this seems to be a c&p issue and should rather read

// fetch UID for the newest message in a mailbox

To Reproduce https://imapflow.com/module-imapflow-ImapFlow.html#fetchOne-examples

andris9 commented 1 year ago

Thanks. It's a copy-pasta issue. Fixed with 52d72beafef3151e8b3620e732eff66b6fc9706d