changeset: 6789:a60f7d09c386
user:      Kevin McCarthy <ke...@8t8.us>
date:      Wed Sep 07 19:12:26 2016 -0700
link:      http://dev.mutt.org/hg/mutt/rev/a60f7d09c386

Add unsidebar_whitelist command.

This pairs with the sidebar_whitelist command, and operates like the
other "un..." list commands.

diffs (72 lines):

diff -r 485ac2438e0f -r a60f7d09c386 doc/manual.xml.head
--- a/doc/manual.xml.head       Wed Sep 07 18:56:50 2016 -0700
+++ b/doc/manual.xml.head       Wed Sep 07 19:12:26 2016 -0700
@@ -8291,6 +8291,14 @@
       <arg choice="opt" rep="repeat">
        <replaceable class="parameter">mailbox</replaceable>
       </arg>
+
+      <command>unsidebar_whitelist<anchor id="unsidebar-whitelist"/></command>
+      <arg choice="plain">
+       <replaceable class="parameter">*</replaceable>
+      </arg>
+      <arg choice="plain" rep="repeat">
+       <replaceable class="parameter">mailbox</replaceable>
+      </arg>
     </cmdsynopsis>
 
     <para>
@@ -8299,6 +8307,12 @@
       linkend="sidebar-new-mail-only">$sidebar_new_mail_only</link>
       is set and the mailbox does not contain new mail.
     </para>
+
+    <para>
+      The <quote>unsidebar_whitelist</quote> command is used to remove a 
mailbox from
+      the list of whitelisted mailboxes. Use <quote>unsidebar_whitelist 
*</quote>
+      to remove all mailboxes.
+    </para>
   </sect2>
 
   <sect2 id="sidebar-colors">
@@ -9571,13 +9585,24 @@
 <cmdsynopsis>
 <command><link linkend="sidebar-whitelist">sidebar_whitelist</link></command>
 <arg choice="plain">
-<replaceable class="parameter">item</replaceable>
-</arg>
-<arg choice="plain">
-<replaceable class="parameter">command</replaceable>
-</arg>
+<replaceable class="parameter">mailbox</replaceable>
+</arg>
+<arg choice="opt" rep="repeat">
+<replaceable class="parameter">mailbox</replaceable>
+</arg>
+
+<command><link 
linkend="unsidebar-whitelist">unsidebar_whitelist</link></command>
+<group choice="req">
+<arg choice="plain">
+<replaceable class="parameter">*</replaceable>
+</arg>
+<arg choice="plain" rep="repeat">
+<replaceable class="parameter">mailbox</replaceable>
+</arg>
+</group>
 </cmdsynopsis>
 </listitem>
+
 <listitem>
 <cmdsynopsis>
 <command><link linkend="source">source</link></command>
diff -r 485ac2438e0f -r a60f7d09c386 init.h
--- a/init.h    Wed Sep 07 18:56:50 2016 -0700
+++ b/init.h    Wed Sep 07 19:12:26 2016 -0700
@@ -3934,6 +3934,7 @@
   { "set",             parse_set,              0 },
 #ifdef USE_SIDEBAR
   { "sidebar_whitelist",parse_list,            UL &SidebarWhitelist },
+  { "unsidebar_whitelist",parse_unlist,                UL &SidebarWhitelist },
 #endif
   { "source",          parse_source,           0 },
   { "spam",            parse_spam_list,        MUTT_SPAM },

Reply via email to