Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 21:58:12 +0000
From:      Mark Robert Vaughan Murray <markm@FreeBSD.org>
To:        Anthony Perkins <anthony@acperkins.com>
Cc:        current@FreeBSD.org
Subject:   Re: Patch: Add option to fmt to ignore email reply lines
Message-ID:  <E05FEFD7-02C5-461F-A977-4743FB34A9DB@FreeBSD.org>
In-Reply-To: <20131125125430.GC67451@ul9n>
References:  <20131125125430.GC67451@ul9n>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On 25 Nov 2013, at 12:54, Anthony Perkins <anthony@acperkins.com> wrote:

> I've added an option to 'fmt' to ignore lines beginning with the
> greater-than symbol, so that whole email replies can be piped through
> fmt (e.g. via vi from mutt) without needing to repeat the command
> for each of my paragraphs.
> 
> This is my first real patch, so I would appreciate any feedback.

I’ve not tried your patch, but I like the idea. When using NMH, I like
to use a paragraph reformatter before sending, and fmt(1) was terrible
because (as you note) it can’t handle the reply quoting.

You may want to extend your idea a bit and do what par (ports/textproc/par)
does. This is a paragraph reformatter that takes the quoting into account,
replacing it after the paragraph wrapping.

M
-- 
Mark R V Murray


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQCVAwUBUpPH+t58vKOKE6LNAQp0HAQAlWPQUlmQ3KvnVWje39TxztLyOMQTHIzN
fb/pcOlG6VnRCm+NmeLpBTdGEpmKhGH8KE1CyWOxDgTS6G1Olk4pdZaZDUoOJ4sK
yvyqWvNV71eM8mnm5QXlndlAj53CdAZrMXvhqrASw4hzziUasCi6rpAv8RhJN7ry
OrV5aeUKVPg=
=XFgz
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E05FEFD7-02C5-461F-A977-4743FB34A9DB>