Dmitry-- Is the script neglecting only one email or several emails. If several emails are missing are they in series - is there any sort of pattern?
Anthony On Tuesday, October 27, 2020, <python-win32-requ...@python.org> wrote: > Send python-win32 mailing list submissions to > python-win32@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/python-win32 > or, via email, send a message with subject or body 'help' to > python-win32-requ...@python.org > > You can reach the person managing the list at > python-win32-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of python-win32 digest..." > > > Today's Topics: > > 1. Missing letters (FEDOROV Dmitry) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 27 Oct 2020 10:34:23 +0000 > From: FEDOROV Dmitry <dmitry.fedo...@mazars.ru> > To: "python-win32@python.org" <python-win32@python.org> > Subject: [python-win32] Missing letters > Message-ID: > <AM0PR10MB3425BEB6B72F20B753583E9597160@AM0PR10MB3425. > EURPRD10.PROD.OUTLOOK.COM> > > Content-Type: text/plain; charset="windows-1252" > > 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.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.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-0001.png> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > https://mail.python.org/mailman/listinfo/python-win32 > > > ------------------------------ > > End of python-win32 Digest, Vol 210, Issue 3 > ******************************************** >
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32