]> granicus.if.org Git - mutt/commitdiff
Detail the documentation of %l for index_format.
authorVincent Lefevre <vincent@vinc17.net>
Sun, 23 Jun 2019 00:05:43 +0000 (02:05 +0200)
committerVincent Lefevre <vincent@vinc17.net>
Sun, 23 Jun 2019 00:07:18 +0000 (02:07 +0200)
init.h

diff --git a/init.h b/init.h
index 9847a5fcb547efd970e14c3c7815fa8af5db34a7..857e2b671c96999f98dd9ec6d71163ae105fef0a 100644 (file)
--- a/init.h
+++ b/init.h
@@ -1599,8 +1599,8 @@ struct option_t MuttVars[] = {
   ** .dt %F .dd author name, or recipient name if the message is from you
   ** .dt %H .dd spam attribute(s) of this message
   ** .dt %i .dd message-id of the current message
-  ** .dt %l .dd number of lines in the message (does not work with maildir,
-  **            mh, and possibly IMAP folders)
+  ** .dt %l .dd number of lines in the unprocessed message (may not work with
+  **            maildir, mh, and IMAP folders)
   ** .dt %L .dd If an address in the ``To:'' or ``Cc:'' header field matches an address
   **            defined by the users ``$subscribe'' command, this displays
   **            "To <list-name>", otherwise the same as %F.
@@ -1649,6 +1649,12 @@ struct option_t MuttVars[] = {
   ** .dt %*X    .dd soft-fill with character ``X'' as pad
   ** .de
   ** .pp
+  ** Note that for mbox/mmdf, ``%l'' applies to the unprocessed message, and
+  ** for maildir/mh, the value comes from the ``Lines:'' header field when
+  ** present (the meaning is normally the same). Thus the value depends on
+  ** the encodings used in the different parts of the message and has little
+  ** meaning in practice.
+  ** .pp
   ** ``Soft-fill'' deserves some explanation: Normal right-justification
   ** will print everything to the left of the ``%>'', displaying padding and
   ** whatever lies to the right only if there's room. By contrast,