Re: Fix editing headers with format=flowed

2012-12-08 Thread Michael Elkins
On Fri, Dec 07, 2012 at 01:31:34PM -0800, Will Yardley wrote: I feel like mutt should do some kind of sanity checking on the content when configured to generate format=flowed text. I know mutt's philosophy is that the mailer shouldn't mangle anything generated by the editor, but as I understand

Re: Fix editing headers with format=flowed

2012-12-08 Thread Richard
On Fri, Dec 07, 2012 at 01:31:34PM -0800, Will Yardley wrote: > I feel like mutt should do some kind of sanity checking on the content > when configured to generate format=flowed text. I know mutt's > philosophy is that the mailer shouldn't mangle anything generated by the > editor, but as I unde

Re: Fix editing headers with format=flowed

2012-12-07 Thread Will Yardley
On Fri, Dec 07, 2012 at 03:07:12PM -0500, Aaron Schrab wrote: > For people who do want to send flowed messages, I'd think that editor > support would be almost a prerequisite. Going without, would be tedious > and error-prone. Once using an editor with at least some support for > this format,

Re: Fix editing headers with format=flowed

2012-12-07 Thread Michael Elkins
On Fri, Dec 07, 2012 at 06:54:44PM -0500, Aaron Schrab wrote: The vim configuration that I applied for this is in the following commit to my dotfiles repository: https://github.com/aschrab/dotfiles/commit/080e3f376dca8f60e517eda93a144261914a5607 Very nice! I think I'm going to try using that

Re: Fix editing headers with format=flowed

2012-12-07 Thread Aaron Schrab
At 17:20 -0500 07 Dec 2012, Aaron Schrab wrote: At 13:54 -0800 07 Dec 2012, Michael Elkins wrote: I think the better solution would be to teach Vim how to disable auto reformat when editing in the email header, That would indeed be nice, but is likely to be difficult to get right. After se

Re: Fix editing headers with format=flowed

2012-12-07 Thread Aaron Schrab
At 13:54 -0800 07 Dec 2012, Michael Elkins wrote: I think the better solution would be to teach Vim how to disable auto reformat when editing in the email header, That would indeed be nice, but is likely to be difficult to get right. because there are other cases where it will bite you. For

Re: Fix editing headers with format=flowed

2012-12-07 Thread Michael Elkins
On Fri, Dec 07, 2012 at 04:27:37PM -0500, Aaron Schrab wrote: 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:

Re: Fix editing headers with format=flowed

2012-12-07 Thread Aaron Schrab
At 13:00 -0800 07 Dec 2012, Michael Elkins 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 RFC

Re: Fix editing headers with format=flowed

2012-12-07 Thread Michael Elkins
On Fri, Dec 07, 2012 at 03:07:12PM -0500, Aaron Schrab wrote: For people who do want to send flowed messages, I'd think that editor support would be almost a prerequisite. Going without, would be tedious and error-prone. Once using an editor with at least some support for this format, I belie

Re: Fix editing headers with format=flowed

2012-12-07 Thread Aaron Schrab
At 11:57 -0800 07 Dec 2012, Michael Elkins wrote: I think this change is somewhat controversial. I'm used to hitting 'A' in vim to append to those header lines, and with this change I'd have to type a space first. I'm sure there are others who would be annoyed by this as well. With the pat

Re: [PATCH] Fix editing headers with format=flowed

2012-12-07 Thread Michael Elkins
On Fri, Dec 07, 2012 at 02:43:23PM -0500, aaron+m...@schrab.com wrote: When inserting headers into the message file due to $edit_headers being set, do not add trailing spaces if $text_flowed is also set. This avoids the editor from treating the entire header section as a single flowed paragraph

[PATCH] Fix editing headers with format=flowed

2012-12-07 Thread aaron+mutt
When inserting headers into the message file due to $edit_headers being set, do not add trailing spaces if $text_flowed is also set. This avoids the editor from treating the entire header section as a single flowed paragraph and reformatting it. Vim will do a passable job of editing messages to b