Regular automated archiving of emails

I’d like to have my emails archive automatically on a regular basis.

is there a script or any way to achieve that?

There is no built-in function for that.
You can try using Apple Mail rules as we have provided a few Mail rule scripts in the default install.

Could you kindly elaborate on this a bit more … by, say, providing respective links.

thanks, @BLUEFROG

This is covered in Help > Documentation > Automation > Apple Mail Rules

Anything new about Mail-import-Automation? @BLUEFROG

No. The situation remains the same.