Giter Club home page Giter Club logo

mailunsubscribe's Introduction

Email Unsubscribe Script

This Node.js script is designed to help you unsubscribe from unwanted emails by automating the process. It connects to your IMAP email server, searches for emails containing unsubscribe information, and provides options to unsubscribe using different methods.

Prerequisites

Before using the script, ensure you have the following dependencies installed:

  • Node.js (v14.0.0 or later)
  • npm (Node.js package manager)

Installation

  1. Clone the repository or download the script.

  2. Open a terminal and navigate to the script's directory.

  3. Install the required Node.js packages by running:

    npm install

Usage

  1. Run the script by executing the following command:

    node index.js
  2. The script will prompt you for your email credentials and server information. You can either use the default values or enter your own.

  3. Once connected to the IMAP server, the script will identify emails with potential unsubscribe information.

  4. Review the found emails and decide whether you want to send unsubscribe requests via email or through web links.

  5. The script will display progress bars for the unsubscribe process, providing updates on sent emails and successful unsubscribes.

Note: The script will mark unsubscribed emails as deleted on the server.

Configuration

The script uses a configuration file named login.json to store your email login information and preferences. If the file is not found, the script will prompt you for the necessary details.

Additionally, server configurations are stored in serverList.json. You can customize this file to include server aliases, IMAP, and SMTP settings.

Important

  • Use this script responsibly, as unsubscribing from emails may have consequences.
  • Always review the emails identified for potential unsubscribes before proceeding.
  • Make sure your email credentials are kept secure, and avoid sharing sensitive information.

License

This script is provided under the MIT License. Feel free to modify and distribute it as needed.

mailunsubscribe's People

Contributors

godetremy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.