Re: [PATCH] Add (un)hdr_leave_folded commands.

Kurt Hackenberg <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Mon, Mar 02, 2026 at 10:22:50AM +0100, Oswald Buddenhagen via 
Mutt-dev wrote:

>On Mon, Mar 02, 2026 at 11:37:25AM +0800, Kevin J. McCarthy wrote:
>>spam headers
>>
>i'd refer to these as "spam classification headers" or some such for clarity.

Yes.

>>leave_folded
>>
>i think i'd go with "verbatim", provided the implicitly widened scope 
>doesn't (potentially) conflict with something else. it's more concise 
>and less technical.
>"preformatted" would also fit, as it directly names the reason why one 
>would want to use the feature.

"Verbatim" is not quite right. That means using exactly the same words, 
like a quotation. Its context is English text, which is usually 
arranged in paragraphs, which can be freely rearranged to fit the page 
width -- it doesn't matter where the line breaks fall. The whole point 
of this feature is to preserve the line breaks.

"Preformatted" is closer, but still not quite right, because lines will 
be broken on a terminal narrower than 72 characters.

"leave_folded" is used because this feature exposes to the user a 
low-level detail of the implementation. You kind of have to know that 
internal implementation to use the feature. Offhand I can't think of a 
better name.

The way Mutt displays unignored headers, automatically rewrapped and in 
line with the message body, is not designed for bulky multiline headers 
like the SpamAssassin stuff. Those SpamAssassin headers are not even 
primarily designed for human readers, I think -- they look mainly 
intended for software.

I still hope for some other way, other than this feature, to give the 
requester a convenient representation of the SpamAssassin information. 
(Those headers can be seen unmodified with the command 'h' 
<display-toggle-weed>, but apparently that's not convenient enough.)

Is the requester on this list?
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.