summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-01-24 15:01:33 -0800
committerKevin McCarthy <kevin@8t8.us>2021-01-24 15:11:12 -0800
commit3d6e7df769841f34227a9065401c193b756efde2 (patch)
tree14674e3e72273ce066a8ebbaf33852af36483d41 /doc
parentc6700b05bc7d879fc23903b0023c7274e7bdfcd4 (diff)
Fix hdr_order to use the longest match.
Previously, Mutt would find the first match and use that. However, the example shown in the manual: hdr_order From Date: From: To: Cc: Subject: gives the expectation that an mbox From_ line would print first, then the Date:, and then the From: header. Change the matcher to scan all HeaderOrderList entries and use the longest match. Update the documentation to make it clear From_ lines are printed out with other "real" headers, and can be manipulated via ignore and hdr_order commands.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.xml.head14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/manual.xml.head b/doc/manual.xml.head
index f9140b53..85cca40f 100644
--- a/doc/manual.xml.head
+++ b/doc/manual.xml.head
@@ -3389,6 +3389,13 @@ readability. (Note that the sending side is not affected by this, Mutt
tries to implement standards compliant folding.)
</para>
+<para>
+Despite not being a real header, Mutt will also display an mbox
+&quot;From_&quot; line in the pager along with other headers. This
+line can be manipulated with <command>ignore/unignore</command> and
+<command>hdr_order/unhdr_order</command> commands.
+</para>
+
</sect2>
<sect2 id="ignore">
@@ -3453,6 +3460,13 @@ unignore posted-to:
</screen>
</example>
+<para>
+The above example will show &quot;From:&quot; headers as well as mbox
+&quot;From_&quot; lines. To hide the latter, instead use
+&quot;<literal>unignore from: date subject to cc</literal>&quot; on
+the second line.
+</para>
+
</sect2>
<sect2 id="hdr-order">