gmail google script issue with PEC (certified italian email)

Job ID: 35499880

Budget: €30 – €250 EUR

Hello, I have a script that manages the eMails of a gmail account using the labels.
It takes the attachments and moves them in a folder of a FTP server.
The issue is that when it encounters a certified email (PEC. It's a particular format used in Italy that provides a proof of receipt legally vaild) it does not see the attachment and therefore it does not manage it.
I need to solve this, by working on the gscript itself or by finding a workaround (maybe a passage through another eMail that "cleans" it?).
Please type "i am here" at the beginning of your offer to prove that you read everything