Re: [PATCH] Add $weed_unfold option.

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aaUFx4MrWJtjL-5C@qinghai>
On Sun, Mar 01, 2026 at 10:01:30PM -0500, Kurt Hackenberg wrote:
>On Sun, Mar 01, 2026 at 11:41:59AM +0800, Kevin J. McCarthy wrote:
>
>>Okay okay... you guilted me into it Oswald. ;P
>>
>>I've started working on a branch `kevin/opt_unfold_v3` with a 
>>command "hdr_leave_folded" instead.  After I add documentation, test 
>>it, and clean it up, I'll send another patchset here.
>
>I'm not sure that even the previous simpler version makes it 
>worthwhile to complicate the code and add yet another configuration 
>variable. This seems like a very niche feature, at best a minor 
>convenience in a special case, perhaps for just one person. And now a 
>list of particular headers that get special treatment?

Yeah, I felt the same way at first, but then I realized it kind of 
flowed with the $weed setting (see below).

>Are "ignore" and "weed" two names for the same thing (hide headers)?

$weed enables the message display settings listed in 
<http://www.mutt.org/doc/manual/#msg-hdr-display>:
   - header unfolding (and then refolding to $wrap columns).
   - ignore/unignore for filter headers.
   - hdr_order for ordering the headers.
   - and now a possible third option: hdr_leave_folded to list headers to
     remain "as is" in the source email without unfolding.

I was waiting for feedback from the requester and to review the patch a 
bit more, but I'll send it out shortly to the list for early review.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmlBccACgkQre92hIAx
a9ppMxAArXBEoeMjZDq1hwOXHB7QfGT4l4DEZQr8Y5VlVe7dIQhFJCGYU1PWhYn5
EukuCNTXHWgncMNBo7AtvyGACdrM9I9uz9CR7izF/uuUq+b+CABc2OCh9t1qO+yo
LZJBigoqIsOUwAznO6u+NfqFTK1TFHoyHkuMOqibrLny5dgJ3p0EuLOjQ+iUxhJA
yo21Iy7IMJdgS0oBzkHNd+Da+iCfDnVfJ8JEdrr1EWF0vil9rfEVyIOheAPLZKiM
rflVF1p3YUXCxJ6K50wsT1acf3XYpz3kBgcCj1vlRkr4iNyX5zT10FfLA2+OMT52
kx99u2/E27eTt+0er2x7dh42kxp6hpCaZmRcQBu4gNaOAJE0hBAeZl8giWWiQCfH
EI/Ddmzz5XXlSCMKNqg3u5t63joYowBw1wRJC8ngKDQ0m+QvOObRdFWWxG00SN3E
VPMoLfNCVHpfYlIRI0JVWV64ZqkD/bR8fO24JLe9StWuSM2pKD711kGrPxLiNTmN
4k2EMV25MgHuni+TEiDkhFbe+Mcz5XRcVKuU21JNc1n2rl03JmgrQx3jWNzuNhEx
HiJ9EMBlnBoA1XwYKyE3zIivAJvy3CFCAQLooW/MoIbO2NARWVFFsO0P/IRiTcpm
dX4glg0Cs1LEPIC6HAzzMfW94uRyIwrHjNmINOXPoZISzHFKsaE=
=E4o7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.