From: Kevin McCarthy Date: Thu, 8 Sep 2016 02:12:26 +0000 (-0700) Subject: Add unsidebar_whitelist command. X-Git-Tag: neomutt-20170225~32^2~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52304c95bb0fbbd45603c4cc78c5bd5a74addca1;p=neomutt Add unsidebar_whitelist command. This pairs with the sidebar_whitelist command, and operates like the other "un..." list commands. --- diff --git a/doc/manual.xml.head b/doc/manual.xml.head index b27d71682..db88f87ef 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -8291,6 +8291,14 @@ please have a look at the mixmaster documentation. mailbox + + unsidebar_whitelist + + * + + + mailbox + @@ -8299,6 +8307,12 @@ please have a look at the mixmaster documentation. linkend="sidebar-new-mail-only">$sidebar_new_mail_only is set and the mailbox does not contain new mail. + + + The unsidebar_whitelist command is used to remove a mailbox from + the list of whitelisted mailboxes. Use unsidebar_whitelist * + to remove all mailboxes. + @@ -9571,13 +9585,24 @@ The following are the commands understood by Mutt: sidebar_whitelist -item +mailbox + +mailbox + + +unsidebar_whitelist + -command +* + +mailbox + + + source diff --git a/init.h b/init.h index c572ee385..ae3ccaaa9 100644 --- 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 },