use Mail::Message::Convert::TextAutoformat; my $af = Mail::Message::Convert::TextAutoformat->new; my $beautified_body = $af->autoformatBody($body);
See SYNOPSIS in Mail::Message::Convert
Play trics with plain text, for instance bodies with type text/plain
using Damian Conway's Text::Autoformat.