sarah-mail
v0.0.4
Published
Mail trigger for Sarah
Downloads
1
Readme
Sarah-Mail
Features
IMAP
- New e-mail
Todo
- Support multiple protocols
- Write good unit tests
Sample code
module.exports = (domain) => {
//Create a new Mail task generator
var mail = domain.trigger('Mail');
//When a new article is found
mail.box('Inbox').on('message', (message) => {
console.log(message.subject);
});
};
More information
When the box() method is used no connection is made with the server, it waits until you bind an event.