From: Eric Wong Date: Mon, 23 May 2016 19:55:04 GMT Subject: Re: [RFC-PATCH 1/2] send-email: new option to quote an email and reply to Message-ID: <20160523195504.GA8957@dcvr.yhbt.net> In-Reply-To: <1464031829-6107-2-git-send-email-tom.russello@grenoble-inp.org> Tom Russello wrote: > This new option takes an email message file, parses it, fills the "To", > "Subject" and "Cc" fields appropriately and quote the message. > This option involves the `--compose` mode to edit the cover letter quoting the > given email. Cool! There should probably be some help text to encourage trimming down the quoted text to only relevant portions. > + #Message body > + while (<$fh>) { > + #for files containing crlf line endings > + $_=~ s/\r//g; > + my $space=""; > + if (/^[^>]/) { > + $space = " "; > + } > + $message_quoted .= ">".$space.$_; Is this really necessary to switch between "> " and ">" prefix? AFAIK, MUAs prefix unconditionally with "> ". At least that's how mutt does it...