I had to use mail(1) recently (after ~30 years break :). To my surp^Wconfusion its editline inits itself to vi mode. I think no program should ever init editline to vi mode, unless specifically instructed too. :)
PS: I had EDITOR=emacsclient on that system. But even EDITOR=vi is not an excuse to init editline to vi mode, IMHO. -uwe