MSG files with the wrong number of attachments in version 23.4.1

Hello,
I have a license for Aspose.Email-for-Python-via-NET that allows me to use it up to version 23.4.1.
I need Aspose to extract attachments from MSG messages, and I noticed the following issue in many MSG files:
I use

message = MapiMessage.from_file(path_to_input)

for attachment in message.attachments

to open the message and then to access the attachments and save them to files.

If I use version 23.1, I can access all attachments in MSG files.
If I use versions 23.2 to 23.4.1, I often cannot access all attachments in the message.

When I detected this problem, I tried to reinstall version 23.1 of Aspose in my application. However, since I’ve upgraded Python to 3.11, I cannot install the older version of Aspose.

What can I do to keep Python 3.11 in my application and ensure that I can access all attachments?
Thanks

Hello @slad,

Can you share a sample message for which you can’t access all attachments?

Thank you.

Hello,

I have now identified that the issue with the attachments was related to the incorrect use of the license and not the Aspose version. Since I wasn’t using the license correctly, I was extracting in DEMO mode, which always limited me to 3 attachments per message.
I apologize for any inconvenience, and thank you for your assistance.

@slad ,

It’s OK. Feel free to contact us for further assistance.