Easily, though you don't need to drag external programs like fmt into it - perl comes with a standard module for word wrapping.
Text::Balanced (for extracting the quoted text) and Text::Wrap would be the core of such a program.
Text::Balanced (for extracting the quoted text) and Text::Wrap would be the core of such a program.