Python Forum
Help Needed | Read Outlook email Recursively & download attachment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Needed | Read Outlook email Recursively & download attachment
#2
Not sure if this would help, but if you are expecting to only search for a certain number of emails, why not get the "count" of emails found to download and loop thru that number of emails, so that once its processed all x emails, it stops looping?

What is being returned in this variable?
mail_items

You have to be able to tell the logic that it needs to stop, you could technically create a Boolean variable outside the while, set it to false
Then after line 60 mail_items.GetPrevious() set that to true.

Then wrap your while with if false, run logic..

Just an idea.
Reply


Messages In This Thread
RE: Help Needed | Read Outlook email Recursively & download attachment - by cubangt - Jan-07-2022, 07:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to download TLS Report attachment blason16 6 554 Feb-26-2024, 07:36 AM
Last Post: Pedroski55
  Extract PDF Attachment from Gmail jstaffon 0 586 Sep-10-2023, 01:55 PM
Last Post: jstaffon
  Search Outlook Inbox for set of values cubangt 1 1,105 Jun-28-2023, 09:29 PM
Last Post: cubangt
  Save image from outlook email cubangt 1 708 Jun-07-2023, 06:52 PM
Last Post: cubangt
  Read All Emails from Outlook and add the word counts to a DataFrame sanaman_2000 0 1,871 Sep-15-2022, 07:32 AM
Last Post: sanaman_2000
  How to return the next page from json recursively? sandson 0 1,156 Apr-01-2022, 11:01 PM
Last Post: sandson
  I get attachment paperclip on email without any attachments monika_v 5 2,004 Mar-19-2022, 10:20 PM
Last Post: cosmarchy
  Mark outlook emails as read using Python! shane88 2 6,575 Feb-24-2022, 11:19 PM
Last Post: Pedroski55
  Trying to determine attachment file type before saving off.. cubangt 1 2,168 Feb-23-2022, 07:45 PM
Last Post: cubangt
  Trying out the parsing/reading of emails from my outlook cubangt 0 6,186 Jan-12-2022, 08:59 PM
Last Post: cubangt

Forum Jump:

User Panel Messages

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