Automatically sync all folders in Thunderbird

So I found this:

Edit -> Preferences -> Advanced -> Config Editor…

mail.server.default.check_all_folders_for_new = true