Pages - Menu

Saturday, March 4, 2017

Python: delete emails with imaplib

Before running the script, you need to turn on "Allow less secure apps".
- Login your mail account
- For gmail, you can access this https://myaccount.google.com/security
- Make sure "Allow less secure apps" is ON

 

If It is OFF, you will get an error like this while running the script


Below is the script :)

5 comments:

  1. Extraordinary tips and straightforward. This will be extremely valuable for me when I get an opportunity to begin my blog.
    Buy gmail accounts

    ReplyDelete
  2. It is really helpful article please read it too my blog IMAP Gmail is Responding.

    ReplyDelete
  3. Hey Mike, really great thoughts on this topic, I recently blogged about this as well "how to delete all emails in gmail"

    ReplyDelete
  4. How to print which mails are deleting

    ReplyDelete
  5. This is a real good and well written article about the best forex trading robot to trade the market with. In fact, I think that you should really take a look at this, since I think it'll really help you out when it comes to trading. Thank you for writing this article, I am indeed looking forward to your articles as I've learned a lot from it. Indeed I hope you enjoyed this article and I hope you take what you have learned here and use it to make yourself successful in the forex trading market.
    Buy google voice accounts

    ReplyDelete