To handle multi-line URLs and potentially named/indexed hyperlinks that show up in emails, OSC-8 terminal code support should be implemented.
Reference: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
Pretty sure this requires parsing the content of the mail, for which aerc has it's filters. If this is considered to be implemented, I'd like to help with this tested and verified implementation, which you are free to copy: https://git.sr.ht/~poldi1405/go-ansi/tree/master/item/hyperlinks.go
what does happen if the terminal does not support that OSC-8 sequence?
Excellent Question. I have no Idea. I tried, but I failed to find a Terminal that doesn't.
Implemented with upgrade to tcell-term v0.2.0
https://git.sr.ht/~rjarry/aerc/commit/020279108c4234974a26580183ef60945c5bd5cb