mailbuddy
v0.1.2
Published
A simple scriptable e-mail assistant
Downloads
6
Readme
MailBuddy
E-mail automation simplified.
Example
async function main() {
const buddy = await MailBuddy.create({
host: 'outlook.office365.com',
user: '...',
password: '...',
port: 993,
tls: true
});
buddy.addListener((mail) => {
mail.filter(mail => mail.headers.from.includes('REWE eBon <[email protected]>'))
.forEach(mail => console.log(mail));
});
}
main().catch(console.error);