neomutt + virtual mailboxes, кол-во непрочитанных писем
Пытаюсь настроить neomutt + notmuch с virtual-mailboxes.
Работает:
- письма синхронизируются через offlineimap
- после синхронизации письмам проставляются корректные тэги
- neomutt отображает virtual-mailboxes и письма в них
- сайдбар в neomutt отображает кол-во непрочитанных писем в каждом virtual-mailbox
Проблема:
После добавления virtual-mailboxes перестало работать обновление кол-ва непрочитанных писем в сайдбаре.
Если прочитать письмо, а затем вызвать sync-mailbox
или открыть другой virtual-mailbox, то счетчик в сайдбаре обновляется.
Как я понимаю, за пересчет кол-ва писем должны отвечать вот эти параметры из конфига, но не смог разобраться, почему они перестали работать.
set timeout = 5 # idle time before scanning
set mail_check = 0 # time between scans
set mail_check_stats = yes # calculate message statistics of a mailbox
set mail_check_stats_interval = 5 # claculate message statistics every 5s
Полный конфиг:
# vim: ft=neomuttrc
#-----------------------------------------------------------------------
# default paths
#-----------------------------------------------------------------------
set folder = ~/mailbox # path to mails directory
set header_cache = ~/.cache/neomutt # path to cache dirtetory
set message_cachedir = ~/.cache/neomutt # path to cache directory
set mailcap_path = ~/.config/neomutt/mailcap # path to mailcap
set alias_file = ~/.config/neomutt/aliases # path to aliases
#-----------------------------------------------------------------------
# base settings
#-----------------------------------------------------------------------
set sleep_time = 0 # no pause between commands
set beep = no # do not 'beep' on errors
set delete = ask-yes # ask before delete
set quit = ask-yes # ask before quit
set editor = "nvim +:silent+?^$" # use neovim as editor
#-----------------------------------------------------------------------
# mailbox settings
#-----------------------------------------------------------------------
set mbox_type = Maildir # type of messagebox
#set spoolfile = "+gmail/inbox" # default spool mailbox
set copy = yes # save copies of outgoing messages
set move = no # keep messages in inbox
set mark_old = no # all unread messages are new
set include = yes # include the message in replies
set timeout = 5 # idle time before scanning
set mail_check = 0 # time between scans
set mail_check_stats = yes # calculate message statistics of a mailbox
set mail_check_stats_interval = 5 # claculate message statistics every 5s
#-----------------------------------------------------------------------
# pager settings
#-----------------------------------------------------------------------
set pager_context = 5 # number of context lines to show
set pager_index_lines = 10 # number of index lines to show
set pager_stop = yes # do not go to the next message
#-----------------------------------------------------------------------
# index settings
#-----------------------------------------------------------------------
set sort = threads # sort by threads
set sort_aux = reverse-last-date-received # newest at the top top
set date_format = "%d/%m/%Y" # format of date/time
set index_format = "[%Z] %D %-20.20F %s" # format of message header
#-----------------------------------------------------------------------
# message settings
#-----------------------------------------------------------------------
set markers = no # do not show ugly wrap markers.
set tilde = yes # show tildes like in vim
#-----------------------------------------------------------------------
# sidebar settings
#-----------------------------------------------------------------------
set sidebar_visible = yes # show sidebar
set sidebar_width = 30 # sidebar size
set sidebar_format = "%B%?F? ?%* %?N?%N/?%S" # customize the sidebar display
#-----------------------------------------------------------------------
# external settings
#-----------------------------------------------------------------------
auto_view text/html
alternative_order text/html text/plain text
#source ~/.config/neomutt/mailboxes # define mailboxes
source ~/.config/neomutt/headers # define headers
source ~/.config/neomutt/aliases # define aliases
source ~/.config/neomutt/bindings # define keybindings
#source ~/.config/neomutt/hooks # define hooks
#source ~/.config/neomutt/macros # define macros
source ~/.config/neomutt/colors # define colors
#-----------------------------------------------------------------------
# notmuch test settings
#-----------------------------------------------------------------------
set virtual_spoolfile = yes
set nm_default_uri = "notmuch:///home/jarres/mailbox"
set nm_unread_tag = unread
virtual-mailboxes "=gmail/inbox" "notmuch://?query=tag:gmail and tag:inbox"
virtual-mailboxes "=gmail/sent" "notmuch://?query=tag:gmail and tag:sent"
virtual-mailboxes "=gmail/draft" "notmuch://?query=tag:gmail and tag:drafts"
virtual-mailboxes "=gmail/spam" "notmuch://?query=tag:gmail and tag:spam"
virtual-mailboxes "=gmail/trash" "notmuch://?query=tag:gmail and tag:trash"