At 13:00 -0800 07 Dec 2012, Michael Elkins <m...@sigpipe.org> wrote:
What is your use case? I set both text_flowed and edit_headers and
haven't had any issues. Rewrapping the header manually is something I
don't do, because it can be reflowed automatically by the receiver
anyway, as defined by the relevant RFCs.
Rewrapping the header is specifically what the patch is intended to
avoid.
I use a ~/.vim/ftplugin/mail.vim file which includes:
setlocal formatoptions+=aw
The "w" option tells vim that trailing whitespace on a line indicates
that the paragraph continues onto the next line, similar to how it does
for format=flowed messages. The "a" option causes vim to continuously
reformat paragraphs as I'm editing them, allowing me to insert text
anywhere within a paragraph, and still have it look decent during the
editing phase and for recipients using clients that don't support
format=flowed.
This works nicely for text in the body, but if I need to make changes to
the header when that has trailing spaces it results in a huge mess. For
example if I make any changes to the Subject: header I end up with a
line looking like:
Bcc: Subject: This is the subject
Because the default Bcc: line ends with a blank space, vim determines
that the Subject: line is part of the same paragraph and reformats those
lines so that they're together.