]> granicus.if.org Git - mutt/commitdiff
Add unsidebar_whitelist command.
authorKevin McCarthy <kevin@8t8.us>
Thu, 8 Sep 2016 02:12:26 +0000 (19:12 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 8 Sep 2016 02:12:26 +0000 (19:12 -0700)
This pairs with the sidebar_whitelist command, and operates like the
other "un..." list commands.

doc/manual.xml.head
init.h

index b27d7168223c7e1a0309b46dd1c0d49ae97bbd50..db88f87ef8fa4431803b4ca79065ec9e9d0de2d1 100644 (file)
@@ -8291,6 +8291,14 @@ please have a look at the mixmaster documentation.
       <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 @@ please have a look at the mixmaster documentation.
       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 @@ The following are the commands understood by Mutt:
 <cmdsynopsis>
 <command><link linkend="sidebar-whitelist">sidebar_whitelist</link></command>
 <arg choice="plain">
-<replaceable class="parameter">item</replaceable>
+<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">command</replaceable>
+<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 --git a/init.h b/init.h
index c572ee3858353f1ddc9dcc83749d12c131715c78..ae3ccaaa90dac15af7cf4301d932c6b363e450ec 100644 (file)
--- a/init.h
+++ b/init.h
@@ -3934,6 +3934,7 @@ const struct command_t Commands[] = {
   { "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 },