From c417a7872f8c7e0815de8bc907833078b48d3848 Mon Sep 17 00:00:00 2001 From: lara Date: Sat, 1 Oct 2022 12:37:21 +0200 Subject: [PATCH] [neomutt] Add filter keybind, and other cleanup --- config/neomutt/accounts/account.rc | 1 + config/neomutt/neomuttrc | 7 ------- config/neomutt/sidebar.rc | 5 +++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config/neomutt/accounts/account.rc b/config/neomutt/accounts/account.rc index b3c8299..d395eb8 100644 --- a/config/neomutt/accounts/account.rc +++ b/config/neomutt/accounts/account.rc @@ -6,5 +6,6 @@ set trash = "+$my_account/Trash" macro index,pager gs "mbsync $my_mbsync_conf $my_account" "IMAP sync account" macro index,pager gi "mbsync $my_mbsync_conf $my_account:INBOX" "IMAP sync Inbox" +macro index,pager gf "fdm fetch -a $my_account" "fdm filter mailbox" # vim: syntax=neomuttrc diff --git a/config/neomutt/neomuttrc b/config/neomutt/neomuttrc index 738d0e9..faca025 100644 --- a/config/neomutt/neomuttrc +++ b/config/neomutt/neomuttrc @@ -4,10 +4,3 @@ set folder = "~/mail" set my_msmtp_conf = "" # Leave empty for default set my_mbsync_conf = "" # Leave empty for default source common.rc - -# Override sidebar_new_mail_only -# Move back to sidebar.rc once the issue is resolved -# https://github.com/neomutt/neomutt/issues/2208 -sidebar_whitelist `find $folder -mindepth 1 -maxdepth 1 -type d ! -name cur ! -name tmp ! -name new ! -name .notmuch -printf '"%f"\0' | xargs -0` -sidebar_whitelist `find $folder -mindepth 1 -maxdepth 1 -type d ! -name cur ! -name tmp ! -name new ! -name .notmuch -printf '"%p"\0' | xargs -0` -sidebar_whitelist `find ~/mail -mindepth 1 -type d -iname inbox -printf '"%p"\0' | xargs -0` diff --git a/config/neomutt/sidebar.rc b/config/neomutt/sidebar.rc index 5fca677..22fea79 100644 --- a/config/neomutt/sidebar.rc +++ b/config/neomutt/sidebar.rc @@ -13,4 +13,9 @@ unset sidebar_next_new_wrap # wrap to beginnin unset sidebar_on_right # keep bar on the left set sidebar_sort_method = 'path' # sort by mailbox path alphabetically +# Override sidebar_new_mail_only +sidebar_whitelist `find $folder -mindepth 1 -maxdepth 1 -type d ! -name cur ! -name tmp ! -name new ! -name .notmuch -printf '"%f"\0' | xargs -0` +sidebar_whitelist `find $folder -mindepth 1 -maxdepth 1 -type d ! -name cur ! -name tmp ! -name new ! -name .notmuch -printf '"%p"\0' | xargs -0` +sidebar_whitelist `find $folder -mindepth 1 -type d -iname inbox -printf '"%p"\0' | xargs -0` + # vim: syntax=neomuttrc