Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email Checker with IMAPlib
#1
My current projects are to make an email sender and email checker. My email sender works fine (using SMTPlib), but I can't find a way to make IMAPlib work so it scrapes my Gmail account. This is as far as I was able to get to:

import imaplib

mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('myemail', 'mypassword')
mail.list()
mail.select('inbox')
print(mail.list())
I am aiming for something like this youtube.com/watch?v=4rxNqIRpz1U I want it to print all the emails but so far, with the code above, I've only succeeded in making it print the amount of emails in the inbox.

How should I go about making this? Any other modules I should be using? Thanks.
Reply
#2
you can look through here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Assistance debuging imaplib errors Linh_lee 1 1,015 Aug-21-2022, 05:57 PM
Last Post: Linh_lee
  Simple Password Checker Dexty 8 4,913 Sep-24-2021, 06:49 PM
Last Post: deanhystad
  IMAPLib Has No Attribute IMAP4_SSL. Help! bmccollum 3 3,839 Jun-13-2020, 04:34 AM
Last Post: bmccollum
  imaplib problem levann 3 3,543 Jul-15-2019, 10:05 AM
Last Post: levann
  How can read and download the attachment from the mail using while loop in IMAPlib Py Samjith 0 4,219 Oct-11-2018, 07:15 AM
Last Post: Samjith
  An email with inline jpg cannot be read by all email clients fpiraneo 4 3,932 Feb-25-2018, 07:17 PM
Last Post: fpiraneo
  Variable not defined in password checker DAS 4 4,514 Aug-27-2017, 08:40 PM
Last Post: ichabod801
  Password checker sammy2938 2 10,949 Jul-19-2017, 08:04 PM
Last Post: nilamo
  Email - Send email using Windows Live Mail cyberzen 2 5,873 Apr-13-2017, 03:14 AM
Last Post: cyberzen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020