You can set flags on the email with sieve filters. I think this is only available in roundcube UI though.

bf4f52b4-5648-41a9-aca2-f799daadb640-image.png

Then, in thunderbird, you can highlight them accordingly - https://support.mozilla.org/en-US/kb/message-tags