https://github.com/m0rningdawning/email-checker-pc
This is a small application written in JS with Imap and mailparser modules that reads and saves raw e-mail data to txt files.
https://github.com/m0rningdawning/email-checker-pc
imap javascript mail mailparser node node-js script
Last synced: about 2 months ago
JSON representation
This is a small application written in JS with Imap and mailparser modules that reads and saves raw e-mail data to txt files.
- Host: GitHub
- URL: https://github.com/m0rningdawning/email-checker-pc
- Owner: m0rningdawning
- License: mit
- Created: 2023-06-02T16:15:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T20:45:04.000Z (over 1 year ago)
- Last Synced: 2025-02-09T05:39:14.293Z (3 months ago)
- Topics: imap, javascript, mail, mailparser, node, node-js, script
- Language: JavaScript
- Homepage:
- Size: 1.54 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# email-checker
This is a small application written in JS with Imap and mailparser modules that reads and saves raw e-mail data to txt files. The app utilizes the node-notifier module to handle notifications.



[](https://opensource.org/licenses/MIT)## Compilation
Before the compilation run `npm install` to install all dependencies.
- Windows:
```
npx [email protected] -t node14-win-x64 -o reader-windows.exe -d reader.js
```- Linux:
```
npx [email protected] -t node14-linux-x64 -o reader-linux -d reader.js
```- MacOS:
```
npx [email protected] -t node14-macos-x64 -o reader-macos -d reader.js
```Alternatively, you can run the application using Node without the need to compile it. Just run: `node reader.js`.
## How to use
1. Open "config.json" file and modify the info to access your mailbox.
### Config code with explanations:
```
{
"username": "1234", // Input the name of your email-box
"password": "1234", // Input the password
"host": "imap.gmail.com", // E.G. poczta.student.tu.kielce.pl or imap.gmail.com. "https://" must be excluded!. Be sure to check if your mailbox has imap protocol turned on!
"tls": true, // Leave "true" if you don't know what it is ;)
"date": "May 1, 2023", // Search starting point. Format: "Mmm DD, YYYY" E.g "May 30, 2023"
"mode": "UNSEEN" // Put "UNSEEN" *All caps* to fetch unread messages. Alternatively, put "SEEN" *All caps* to fetch read messages.
}
```2. Choose your executable and start an app.
- On windows you can run the .vbs file to open the app with no console.
- Fetched emails will be saved in the "mail" directory. The parsed version of fetched emails will be stored in the "regular" subdirectory, while the raw data will be stored in the "raw" subdirectory.
3. Enjoy!
## Credits
Inspired by:
- https://github.com/KaganBaldiran/University_Mail_Checker