Git Product home page Git Product logo

mailingit's Introduction

MailingIt

Send emails(or spams) and text messages using python

To send spams do: python or python3 sendspams.py

To delete mails or (spams): python or python3 deletespams.py

But before, you should configure a request withing the file deletespams.py for seearching the emails you want to delete.

This is really dangerous, make sure, there isn't any mistake in your request.

You can add the date and the person's email you want to delete emails from. For instance :

uids = searchmails(imapObj,
                   '[Gmail]/Messages envoyés',
                    ON='17-Apr-2018',
                    FROM='mail.gmail.com')
                    
deletemails(imapObj, uids)

Of course, you will not forget to change the value of parameters (FROM, ON, etc...)

You can select the folder where to search for emails, for those who have gmail, you might have the choices below:

'INBOX'
'[Gmail]'
'[Gmail]/Brouillons'
'[Gmail]/Corbeille'
'[Gmail]/Important'
'[Gmail]/Messages envoyés'
'[Gmail]/Spam'
'[Gmail]/Suivis'
'[Gmail]/Tous les messages'

And you can add many many filters in the parameters, in this exemple i added only ON and FROM but you can use the link below in the chapter Sending emails and Text messages, section Performing the search, to add more parameters:

https://automatetheboringstuff.com/chapter16/

In the next versions, I'll try to automate the process of deleting mails within the command line.

Have fun and great spamming !

References

Automate the Boring Stuff with Python

mailingit's People

Contributors

atidiane avatar

Stargazers

 avatar

Watchers

 avatar  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.