Dmitry--<div><br></div><div>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?</div><div><br></div><div>Anthony<br><br>On Tuesday, October 27, 2020, <<a href="mailto:python-win32-request@python.org">python-win32-request@python.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send python-win32 mailing list submissions to<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-win32</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:python-win32-request@python.org">python-win32-request@python.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:python-win32-owner@python.org">python-win32-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of python-win32 digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Missing letters (FEDOROV Dmitry)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Tue, 27 Oct 2020 10:34:23 +0000<br>
From: FEDOROV Dmitry <<a href="mailto:dmitry.fedorov@mazars.ru">dmitry.fedorov@mazars.ru</a>><br>
To: "<a href="mailto:python-win32@python.org">python-win32@python.org</a>" <<a href="mailto:python-win32@python.org">python-win32@python.org</a>><br>
Subject: [python-win32] Missing letters<br>
Message-ID:<br>
<<a href="mailto:AM0PR10MB3425BEB6B72F20B753583E9597160@AM0PR10MB3425.EURPRD10.PROD.OUTLOOK.COM">AM0PR10MB3425BEB6B72F20B75358<wbr>3E9597160@AM0PR10MB3425.<wbr>EURPRD10.PROD.OUTLOOK.COM</a>><br>
<br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hello!<br>
I wrote the script for reading emails and downloading attachments on everyday basis (50+ emails each day).<br>
In general, it's working properly, but sometimes script skips the emails without any reason. Why it might happen?<br>
I use application connection<br>
outlook = win32com.client.Dispatch("<wbr>Outlook.Application").<wbr>GetNamespace("MAPI")<br>
<br>
And emails extracting from specific folder (I am sure that subject of skipped emails contain test):<br>
<br>
main_box = outlook.Folders.Item(main_<wbr>folder)<br>
inbox = main_box.Folders.Item(folder)<br>
messages = inbox.Items<br>
messages = [msg for msg in messages if "test" in msg.Subject.lower()]<br>
<br>
Kind regards,<br>
Dmitry<br>
<br>
<br>
<br>
Dmitry FEDOROV<br>
<br>
Senior Consultant<br>
<br>
<br>
<br>
Mazars - Mazars Labs<br>
<br>
5, bld. 19, Nizhniy Susalniy Pereulok, Business Center 'Arma'<br>
<br>
105064 - Moscow - Russia<br>
<br>
Tel: +7 (495) 792 5245, +7 (495) 532 2685<br>
<br>
Direct line: +74995008014;ext=1120#<br>
<br>
Mobile: +7 (905) 761 18 94<br>
<br>
<br>
<br>
<a href="http://www.mazars.ru" target="_blank">www.mazars.ru</a><br>
<br>
<br>
<br>
Follow Mazars on LinkedIn<<a href="https://www.linkedin.com/company/mazars-in-russia/?viewAsMember=true" target="_blank">https://www.linkedin.<wbr>com/company/mazars-in-russia/?<wbr>viewAsMember=true</a>> - Facebook<<a href="https://www.facebook.com/MazarsRussia" target="_blank">https://www.facebook.<wbr>com/MazarsRussia</a>> - YouTube<<a href="https://www.youtube.com/user/MazarsFrance" target="_blank">https://www.youtube.<wbr>com/user/MazarsFrance</a>><br>
<br>
<br>
<br>
[cid:Mazars_Logo_2C_RGB_<wbr>c2f2f6a3-11fc-44e9-813c-<wbr>bdd3c2bea3b3.png]<<a href="https://rus.mazars.ru/" target="_blank">https://rus.<wbr>mazars.ru/</a>><br>
<br>
<br>
<br>
Please consider the environment before printing this email. This email and any files transmitted with<br>
<br>
it are confidential and intended solely for the use of the individual or entity to whom they are addressed.<br>
<br>
<br>
<br>
[cid:memail_footer_ru_<wbr>38ccddf5-17ef-4ae2-b3aa-<wbr>deb801d5ac07.png]<<a href="https://www.mazars.ru/Home/About-us/Mazars-announces-global-rebrand" target="_blank">https://www.<wbr>mazars.ru/Home/About-us/<wbr>Mazars-announces-global-<wbr>rebrand</a>><br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment.html" target="_blank">https://mail.python.org/<wbr>pipermail/python-win32/<wbr>attachments/20201027/abc77cc6/<wbr>attachment.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: Mazars_Logo_2C_RGB_c2f2f6a3-<wbr>11fc-44e9-813c-bdd3c2bea3b3.<wbr>png<br>
Type: image/png<br>
Size: 20121 bytes<br>
Desc: Mazars_Logo_2C_RGB_c2f2f6a3-<wbr>11fc-44e9-813c-bdd3c2bea3b3.<wbr>png<br>
URL: <<a href="https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment.png" target="_blank">https://mail.python.org/<wbr>pipermail/python-win32/<wbr>attachments/20201027/abc77cc6/<wbr>attachment.png</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: memail_footer_ru_38ccddf5-<wbr>17ef-4ae2-b3aa-deb801d5ac07.<wbr>png<br>
Type: image/png<br>
Size: 423094 bytes<br>
Desc: memail_footer_ru_38ccddf5-<wbr>17ef-4ae2-b3aa-deb801d5ac07.<wbr>png<br>
URL: <<a href="https://mail.python.org/pipermail/python-win32/attachments/20201027/abc77cc6/attachment-0001.png" target="_blank">https://mail.python.org/<wbr>pipermail/python-win32/<wbr>attachments/20201027/abc77cc6/<wbr>attachment-0001.png</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-win32</a><br>
<br>
<br>
------------------------------<br>
<br>
End of python-win32 Digest, Vol 210, Issue 3<br>
******************************<wbr>**************<br>
</blockquote></div>