Best way to Import Email in 2024

What is the best way to import mailboxes into a Devonthink? To my knowledge, apple changed mail and restricted plugins, and I’m having trouble finding the Applescript.

This has been discussed multiple times on the forums but please read the Help > Tutorials > Handling Email.