Python Forum
get number of unread emails + email text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get number of unread emails + email text
#2
msg is a variable that holds current message (in the code on page https://gist.github.com/robulouski/7441883)
if you look at the code of the page you reference, you will see:
msg = email.message_from_string(data[0][1])
as you can see, it holds result of calling method message_from_string from class email (which you import)
so package name is email and msg.get_payload() should be visible in that code.
Reply


Messages In This Thread
RE: get number of unread emails + email text - by Larz60+ - Oct-04-2018, 11:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Number stored as text with openpyxl CAD79 2 629 Apr-17-2024, 10:17 AM
Last Post: CAD79
  Sending Emails on Autopilot Gyga_Hawk 3 1,759 Mar-15-2022, 08:20 AM
Last Post: Larz60+
  Search text in PDF and output its page number. atomxkai 21 9,406 Jan-21-2022, 06:20 AM
Last Post: snippsat
  Trying out the parsing/reading of emails from my outlook cubangt 0 6,315 Jan-12-2022, 08:59 PM
Last Post: cubangt
  Extracing unique email address from a folder of emails jehoshua 6 2,857 Oct-14-2020, 12:43 AM
Last Post: jehoshua
  reading shared outlook emails zarize 0 2,520 Mar-03-2020, 01:47 PM
Last Post: zarize
  Python Library for Reading POP Emails? bmccollum 1 3,724 Jan-06-2020, 06:37 PM
Last Post: micseydel
  Read in trades from emails semantina 2 2,176 Nov-06-2019, 06:12 PM
Last Post: semantina
  Split Column Text by Number of Characters cgoldstein 3 3,074 Mar-11-2019, 01:45 PM
Last Post: perfringo
  get the number in the line in text file lateublegende 2 2,570 Jan-29-2019, 06:03 PM
Last Post: lateublegende

Forum Jump:

User Panel Messages

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