Giter Site home page Giter Site logo

cleanmail's Introduction

Introduction

This is a tool to delete mails by senders or domains. We first analyze your mailbox (This process takes time). Once done, we show you the count of mails per sender. You can then mark and select the senders whose mails you want to delete. We also show you a list of links from which you should unsubscribe, to avoid junk mails

Note:

  • Please take care while marking mails for deletion, mails once deleted cannot be restored. We also recommend you should take a backup of your mails.
  • We initially ask for read permissions only, delete permissions will be asked as and when required.
  • Using this tool, I reduced the size of my mailbox from 37000+ to 4000 mails

Installation

  1. Get Gmail token

    1. Option 1: Get sample token
      1. Goto https://developers.google.com/gmail/api/quickstart/python
      2. Click on "ENABLE THE GMAIL API"
      3. Click "Download client configration"
    2. Option 2: Create a gmail token
      1. Goto https://console.developers.google.com
      2. Create a new project
      3. Select the project and click on "ENABLE APIS AND SERVICES"
      4. Search for "Gmail API" and click "Enable"
      5. Click on "Create Credentails"
      6. Select "Gmail API", UI Type : "Other UI" and Access : "User Data"
      7. Click next
      8. If prompted, click "Create Consent Screen"
      9. Type Application Name and keep scope public.
      10. Go to previous tab, type any client id
      11. Click on done and download the key
  2. Copy the token in ./tokens as credentails.json. Delete the existing file.

  3. Install the following

    1. pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
  4. Run the script: python CLI.py

Contact

cleanmail's People

Contributors

abistarun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bachmanna

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.