]> granicus.if.org Git - neomutt/commitdiff
Add note about message scoring and thread patterns. (see #3947)
authorKevin McCarthy <kevin@8t8.us>
Wed, 31 May 2017 23:18:29 +0000 (16:18 -0700)
committerRichard Russon <rich@flatcap.org>
Thu, 1 Jun 2017 18:38:30 +0000 (19:38 +0100)
Because scoring occurs before the mailbox is sorted, thread patterns
don't work.  Document a suggested workaround of pushing the score
command in a folder hook.

Also, fix the link target for the score command synopsis.

doc/manual.xml.head

index 224e98ae169f242698e7b9c75adab934438caac8..e90b0d33199d669660dca67ce89192b916576f1c 100644 (file)
@@ -5066,6 +5066,17 @@ message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
       <command>score</command>command for it to be removed. The pattern
       <quote>*</quote>is a special token which means to clear the list of all
       score entries.</para>
+
+      <para>Scoring occurs as the messages are read in, before the mailbox is
+      sorted. Because of this, patterns which depend on threading, such as 
+      <emphasis>~=</emphasis>, 
+      <emphasis>~$</emphasis>, and 
+      <emphasis>~()</emphasis>, will not work by default. A workaround is to push
+      the scoring command in a folder hook. This will cause the mailbox to be
+      rescored after it is opened and input starts being processed:</para>
+      <screen>
+folder-hook . 'push "&lt;enter-command&gt;score ~= 10&lt;enter&gt;"'
+</screen>
     </sect1>
 
     <sect1 id="spam">
@@ -15962,7 +15973,7 @@ folder-hook ^pop 'set read_inc=1'</screen>
         <listitem>
           <cmdsynopsis>
             <command>
-              <link linkend="score">score</link>
+              <link linkend="score-command">score</link>
             </command>
             <arg choice="plain">
               <replaceable class="parameter">pattern</replaceable>
@@ -15971,7 +15982,7 @@ folder-hook ^pop 'set read_inc=1'</screen>
               <replaceable class="parameter">value</replaceable>
             </arg>
             <command>
-              <link linkend="score">unscore</link>
+              <link linkend="score-command">unscore</link>
             </command>
             <group choice="req">
               <arg choice="plain">