I'd like to implement this feature, but maybe we could also do some unification in editor type handling. Let's see what we should do in compose modes:
editor. No problem here.
message. No problem here.
100% consistent. So, what we can do? Use htmleditor setting no matter what is format of replied message? No. Here's my proposal. We could extend htmleditor option to 3-option switch:
I think this is self explanatory. When 0, we'll always disable HTML editor, when 1 we'll always enable HTML editor, when 2 we'll enable HTML editor only when replied message is in HTML format.
Here I see one backward incompatible change. Currently when htmleditor=true and we're reply to plain text message, the editor will be disabled.
NEW/EDIT mode. When we implement "forward-as-attachment" we should set editor like for NEW message.
ps. in future we could add some per-contact format setting (like in Thunderbird).