Re: Change the expectation that emails should wrap at 80 characters
At 15:53 +0000 27 Feb 2025, Jonathan Dowland <jmtd@debian.org> wrote:
If you happen to use edit_headers, you *might* want something like this 
(no idea if mutt has adopted it yet, ensures no trailing space on empty 
header lines):
https://github.com/neomutt/neomutt/pull/1164
That PR shows as being merged several years ago. I'd supplied a similar 
patch for the original mutt as well, but had that rejected. After that I 
handled it in my vim by adding the following to 
~/.vim/ftplugin/mail.vim:
setlocal formatoptions+=rawn2
autocmd CursorMoved,CursorMovedI <buffer> call autoformat#mail()
The function called there is defined in https://github.com/aschrab/dotfiles/blob/master/vim/autoload/autoformat.vim
It takes care of removing the `a` and `w` options from `formatoptions` 
while in the header area.
Looks like I've been using that for ~13 years now, and I don't recall 
having any issues with it.
Reply to: