Missing letters

FEDOROV Dmitry <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <AM0PR10MB3425BEB6B72F20B753583E9597160@AM0PR10MB3425.EURPRD10.PROD.OUTLOOK.COM>
Hello!
I wrote the script for reading emails and downloading attachments on everyday basis (50+ emails each day).
In general, it's working properly, but sometimes script skips the emails without any reason. Why it might happen?
I use application connection
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")

And emails extracting from specific folder (I am sure that subject of skipped emails contain test):

main_box = outlook.Folders.Item(main_folder)
inbox = main_box.Folders.Item(folder)
messages = inbox.Items
messages = [msg for msg in messages if "test" in msg.Subject.lower()]

Kind regards,
Dmitry



Dmitry FEDOROV

Senior Consultant



Mazars - Mazars Labs

5, bld. 19, Nizhniy Susalniy Pereulok, Business Center 'Arma'

105064 - Moscow - Russia

Tel: +7 (495) 792 5245, +7 (495) 532 2685

Direct line: +74995008014;ext=1120#

Mobile: +7 (905) 761 18 94



www.mazars.ru



Follow Mazars on LinkedIn<https://www.linkedin.com/company/mazars-in-russia/?viewAsMember=true> -  Facebook<https://www.facebook.com/MazarsRussia> - YouTube<https://www.youtube.com/user/MazarsFrance>



[cid:Mazars_Logo_2C_RGB_c2f2f6a3-11fc-44e9-813c-bdd3c2bea3b3.png]<https://rus.mazars.ru/>



Please consider the environment before printing this email. This email and any files transmitted with

it are confidential and intended solely for the use of the individual or entity to whom they are addressed.



[cid:memail_footer_ru_38ccddf5-17ef-4ae2-b3aa-deb801d5ac07.png]<https://www.mazars.ru/Home/About-us/Mazars-announces-global-rebrand>

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.