How Do I Adjust Mailbox Behaviours In Mac Mail?

Mailbox preferences can be found in Mac Mail as shown below

You can adjust storage time for each special folder type between one day, one week, one month and ever. If you select never, the folder will never be emptied and will continue to build on the server. This option is not recommended for Junk and Trash folders!

Mailbox Behaviors Settings in Mac Mail