Marking folders/newsgroups read on exit

Every once in a while, someone asks if Mozilla Thunderbird can automatically mark a folder or newsgroup read when you exit that folder or newsgroup. (Why: I don’t know. Automatic marking of all messages as read on exit, is one of the reasons I dislike web-based forums.) Thunderbird 1.5 can do this, but the setting [...]