Skip to content

ivanrdgc/imap_notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple IMAP Notification Script

This is a very basic script in Node.js that connects to a IMAP server and keeps checking for new emails.

When a new email is received, it sends a notification to the console with the email subject.

During first execution, it will also notify of all existing unread emails in the invoice.

It is pre-configured with Gmail IMAP server, SSL enabled and port 993, but it can be changed in the script.

Usage

  1. Install requirements
npm install
  1. Define environment variables with IMAP login credentials. For example (in Unix shell):
export EMAIL=ivanrdgc@gmail.com
export PASSWORD=xxx
  1. Execute the script in Node.js
node notifier.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published