[python-win32] Missing letters

FEDOROV Dmitry dmitry.fedorov at mazars.ru
Tue Oct 27 06:34:23 EDT 2020


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>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mazars_Logo_2C_RGB_c2f2f6a3-11fc-44e9-813c-bdd3c2bea3b3.png
Type: image/png
Size: 20121 bytes
Desc: Mazars_Logo_2C_RGB_c2f2f6a3-11fc-44e9-813c-bdd3c2bea3b3.png
URL: <https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memail_footer_ru_38ccddf5-17ef-4ae2-b3aa-deb801d5ac07.png
Type: image/png
Size: 423094 bytes
Desc: memail_footer_ru_38ccddf5-17ef-4ae2-b3aa-deb801d5ac07.png
URL: <https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment-0003.png>


More information about the python-win32 mailing list