Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
IMAP Search criteria
@HamidSayeed

This comment has been minimized.

Copy link

HamidSayeed commented Sep 25, 2018

can you give an example with HEADER / UID where we can search with MESSAGE id of the mail?
Any help would be much appreciated. Thanks

@PEKTOP

This comment has been minimized.

Copy link

PEKTOP commented Nov 9, 2018

@HamidSayeed

UID SEARCH HEADER Message-ID <53513DD7.8090606@imap.local>
@tiev

This comment has been minimized.

Copy link

tiev commented Feb 21, 2019

@tscheer100

This comment has been minimized.

Copy link

tscheer100 commented Mar 19, 2020

is there a link with examples to these?

@tobiasm-1

This comment has been minimized.

Copy link

tobiasm-1 commented May 5, 2020

Do you know of a search key where the first/last email is found?

@harshmalvi97

This comment has been minimized.

Copy link

harshmalvi97 commented May 13, 2020

@tobiasm-1 This will gives you latest uid of email.
client.selectMailbox("INBOX").then((inbox) => {
let numberEmails = inbox.exists;
console.log("# messages: " + numberEmails);
return numberEmails;
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.