Skip to content

Latest commit

 

History

History

messageLists

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

About

Convenient wrapper function for handling MessageLists and the pagination mechanism, simplifying the process of looping over messages:

import { getMessageIterator } from "messageLists.mjs"

let messageIterator = getMessageIterator(messenger.messages.list(folder));
for await (let message of messageIterator) {
    // Do something with the message.
    let full = await messenger.messages.getFull(message.id);
}