Sonoma Mail Attachment Link

In Sonoma when you save an attachment to any folder it now gives you a link to the original message in mail.
Can I get the information from that?
I receive monthly bank statement encrypted PDF on mail. I then save to a hazel action folder. It run a QPDF to decrypt than follows on.
The issue is, some attachment have the same filename and different passwords.
Some MacOS versions ago when you exported the PDF, Mail used to attach the kMDItemWhereFroms containing the message subject, sender, account etc.
Now theres this new feature on Sonoma, can I get this data?
Can I get the information from that?
I receive monthly bank statement encrypted PDF on mail. I then save to a hazel action folder. It run a QPDF to decrypt than follows on.
The issue is, some attachment have the same filename and different passwords.
Some MacOS versions ago when you exported the PDF, Mail used to attach the kMDItemWhereFroms containing the message subject, sender, account etc.
Now theres this new feature on Sonoma, can I get this data?