Using keyboard maestro to sort mail to certain folders at the end of the day

Is it possible at the end of the day for KM to look at my inbox for example and move all the @amazon.co.uk emails to a folder?

I don’t want to use rules within Mail as it happens automatically, but I would like an end of day cleanup.
Any help / advice would be greatly appreciated.

I would create a mail rule, but only have it operate on messages not received in the last hour. This will prevent it running automatically, but Keyboard Maestro can trigger it to run.

That’s a great idea actually, the date sent additional condition would certainly work.

Could KM do it though?
Might not necessarily be an ‘end of day’ thing, just a ‘cleanup this messy inbox’ thing?