Re: [RFC-PATCH 1/2] send-email: new option to quote an email and reply to
- From
- Eric Wong <e@80x24.org>
- Date
- May 23, 2016, 19:55 UTC
- Message-ID
- <20160523195504.GA8957@dcvr.yhbt.net>
- In-Reply-To
- <1464031829-6107-2-git-send-email-tom.russello@grenoble-inp.org>
Tom Russello <tom.russello@grenoble-inp.org> 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.
Show 9 quoted lines
> + #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...