Thunderbird had plugins that could that. It’s been used years since I used those plugins though, so not sure if they’ve been maintained.