Flag disappears after reading a message in Mail
I reported this as a bug in 2006. It appears that Apple either doesn't use Mail or doesn't care about this feature.

You can get add-on software, such as Mailhub, to repair this feature.