Comments (6)
Can you give the branch roccoblues/folder-hook-name
a try and see if that fixes the issue? Thanks.
from neomutt.
Hi,
can you run NeoMutt with debug logging -d5
and post the result here? Make sure to remove any sensitive data.
Thanks!
from neomutt.
I'm digging a little further and just found out what the actual problem is: For named-mailboxes the folder-hook
regex is sometimes matched against the label, sometimes against the mailbox.
Here is what I mean by label and mailbox: from the man page: named-mailboxes label mailbox [label mailbox ... ]
When starting neomutt (-Z
or not doesn't matter), the folder-hook
regex is only matched against the mailbox. I can verify that by having a regex that matches only the label, which fails, vs. having a regex that matches both, where the log explicitly says it matches against the mailbox.
When navigating the sidebar (i.e. sidebar-{prev,next,open}
), the folder-hook
regex is matched against both the label and the mailbox. Because the regex from above that only matched the label now succeeds.
neomuttrc:
set sidebar_visible
set sidebar_delim_chars = '/'
set sidebar_folder_indent
set sidebar_format = '%D%* %<N?%N>'
set sidebar_indent_string = ' '
set sidebar_short_path
bind index,pager <C-Up> sidebar-prev
bind index,pager <C-Down> sidebar-next
bind index,pager <C-Right> sidebar-open
set folder = "$XDG_DATA_HOME/mail/"
named-mailboxes 'labela' '+mailboxa'
named-mailboxes 'labelb' '+mailboxb'
folder-hook 'labela' 'source "$XDG_CONFIG_HOME/neomutt/rc"'
folder-hook 'mailboxa' 'source "$XDG_CONFIG_HOME/neomutt/rc"'
debug log:
[2024-03-19 14:13:00] NeoMutt-20240201 debugging at level 5
WARNING:
Logging at this level can reveal personal information.
Review the log carefully before posting in bug reports.
[2024-03-19 14:13:00]<1> log_translation() Translation: NONE
[2024-03-19 14:13:00]<5> helpbar_window_observer() window state: request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<1> log_gui() GUI:
[2024-03-19 14:13:00]<1> log_gui() Curses: ncurses 6.4.20230520
[2024-03-19 14:13:00]<1> log_gui() COLORS=16777216
[2024-03-19 14:13:00]<1> log_gui() COLOR_PAIRS=65536
[2024-03-19 14:13:00]<1> log_gui() TERM=xterm-direct
[2024-03-19 14:13:00]<1> log_gui() COLORTERM=truecolor
[2024-03-19 14:13:00]<1> log_gui() True color support: YES
[2024-03-19 14:13:00]<1> log_gui() Screen: 105x53
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapse path: /home/username/.config/neomutt/neomuttrc
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapsed to: /home/username/.config/neomutt/neomuttrc
[2024-03-19 14:13:00]<2> source_rc() Reading configuration file '/etc/neomuttrc'
[2024-03-19 14:13:00]<2> mutt_open_read() File opened (fd=3): /etc/neomuttrc
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: ignore
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: unignore
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: hdr_order
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: macro
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: bind
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: bind
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: mime_lookup
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added */.* [9]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added text/vcard [7]
[2024-03-19 14:13:00]<3> parse_attach_list() added text/x-vcard [7]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added application/pgp.* [2]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added application/pkcs7-.* [2]
[2024-03-19 14:13:00]<3> parse_attach_list() added application/x-pkcs7-.* [2]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added text/plain [7]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added message/external-body [4]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: attachments
[2024-03-19 14:13:00]<3> parse_attach_list() added message/external-body [4]
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapse path: /etc/ssl/certs/ca-certificates.crt
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapsed to: /etc/ssl/certs/ca-certificates.crt
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<2> source_rc() File closed (fd=3)
[2024-03-19 14:13:00]<2> source_rc() Reading configuration file '/home/username/.config/neomutt/neomuttrc'
[2024-03-19 14:13:00]<2> mutt_open_read() File opened (fd=3): /home/username/.config/neomutt/neomuttrc
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: bind
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: bind
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: bind
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: named-mailboxes
[2024-03-19 14:13:00]<1> mailbox_add() Adding mailbox: '+mailboxa' label 'labela', poll [UNSPECIFIED], notify [UNSPECIFIED]
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapse path: /home/username/.local/share/mail/mailboxa
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapsed to: /home/username/.local/share/mail/mailboxa
[2024-03-19 14:13:00]<3> mutt_monitor_add() inotify_add_watch descriptor=1 for '/home/username/.local/share/mail/mailboxa/new'
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: named-mailboxes
[2024-03-19 14:13:00]<1> mailbox_add() Adding mailbox: '+mailboxb' label 'labelb', poll [UNSPECIFIED], notify [UNSPECIFIED]
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapse path: /home/username/.local/share/mail/mailboxb
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapsed to: /home/username/.local/share/mail/mailboxb
[2024-03-19 14:13:00]<3> mutt_monitor_add() inotify_add_watch descriptor=2 for '/home/username/.local/share/mail/mailboxb/new'
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: folder-hook
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: folder-hook
[2024-03-19 14:13:00]<2> source_rc() File closed (fd=3)
[2024-03-19 14:13:00]<1> get_hostname() Setting $hostname
[2024-03-19 14:13:00]<2> getmailname() File open failed (errno=2, No such file or directory): /etc/mailname
[2024-03-19 14:13:00]<2> getmailname() File open failed (errno=2, No such file or directory): /etc/mail/mailname
[2025-03-19 14:13:00]<1> get_hostname() Hostname: whatever
[2024-03-19 14:13:00]<2> log_file_open() File opened (fd=3): /home/username/.neomuttdebug0
[2024-03-19 14:13:00]<M> log_file_open() Debugging at level 5 to file '/home/username/.neomuttdebug0'
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 63, Debugging at level 5 to file '/home/username/.neomuttdebug0'
[2024-03-19 14:13:00]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<2> mutt_hist_read_file() File open failed (errno=2, No such file or directory): /home/username/.mutthistory
[2024-03-19 14:13:00]<2> mutt_file_read_keyword() File open failed (errno=2, No such file or directory): /etc/nntpserver
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 63, Debugging at level 5 to file '/home/username/.neomuttdebug0'
[2024-03-19 14:13:00]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<1> mutt_folder_hook() folder-hook 'mailboxa' matches '/home/username/.local/share/mail/mailboxa'
[2024-03-19 14:13:00]<5> mutt_folder_hook() source "$XDG_CONFIG_HOME/neomutt/rc"
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: source
[2024-03-19 14:13:00]<2> source_rc() Reading configuration file '/home/username/.config/neomutt/rc'
[2024-03-19 14:13:00]<2> mutt_open_read() File opened (fd=5): /home/username/.config/neomutt/rc
[2024-03-19 14:13:00]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:00]<5> cc_config_observer() config done
[2024-03-19 14:13:00]<2> source_rc() File closed (fd=5)
[2024-03-19 14:13:00]<5> rootwin_resize_observer() window resize done
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> helpbar_repaint() repaint done
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapse path: /home/username/.local/share/mail/mailboxa
[2024-03-19 14:13:00]<3> mutt_path_tidy_dotdot() Collapsed to: /home/username/.local/share/mail/mailboxa
[2024-03-19 14:13:00]<M> mx_mbox_open() Reading /home/username/.local/share/mail/mailboxa...
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 55, Reading /home/username/.local/share/mail/mailboxa...
[2024-03-19 14:13:00]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<2> maildir_parse_dir() queueing 1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<2> maildir_parse_message() File opened (fd=5): /home/username/.local/share/mail/mailboxa/cur/1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:00]<2> parse_parameters() 'boundary="--==_mimepart_65f94ac7365f4_8d17fc192925"; charset=UTF-8'
[2024-03-19 14:13:00]<2> parse_parameters() parse_parameter: 'boundary' = '--==_mimepart_65f94ac7365f4_8d17fc192925'
[2024-03-19 14:13:00]<2> parse_parameters() parse_parameter: 'charset' = 'UTF-8'
[2024-03-19 14:13:00]<2> mutt_ch_iconv_open() iconv: adding utf-8 -> utf-8 to the cache
[2024-03-19 14:13:00]<2> maildir_parse_message() File closed (fd=5)
[2024-03-19 14:13:00]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<2> maildir_move_to_mailbox() Considering
[2024-03-19 14:13:00]<2> maildir_move_to_mailbox() Adding header structure. Flags: O
[2024-03-19 14:13:00]<5> sb_insertion_window_observer() insertion: visible
[2024-03-19 14:13:00]<5> sb_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:00]<5> menu_window_observer() window state done, request MENU_REDRAW_INDEX, WA_REPAINT
[2024-03-19 14:13:00]<5> ibar_window_observer() window state done, request WA_REPAINT
[2024-03-19 14:13:00]<M> mutt_sort_headers() Sorting mailbox...
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 18, Sorting mailbox...
[2024-03-19 14:13:00]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:00]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> sb_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> helpbar_window_observer() window focus: request WA_RECALC
[2024-03-19 14:13:00]<5> sb_mailbox_observer() mailbox done, request WA_RECALC
[2024-03-19 14:13:00]<2> maildir_parse_dir() queueing 1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:00]<2> maildir_move_to_mailbox() Considering 1710851268.R6284437005510185856.whatever
[2024-03-19 14:13:00]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:00]<5> helpbar_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> index_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> ibar_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:00]<5> helpbar_repaint() repaint done
[2024-03-19 14:13:00]<5> sb_repaint() repaint done
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:00]<5> index_repaint() repaint done
[2024-03-19 14:13:00]<5> ibar_repaint() repaint done
[2024-03-19 14:13:00]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:00]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:01]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:02]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:02]<1> dlg_index() Got op OP_SIDEBAR_NEXT (272)
[2024-03-19 14:13:02]<1> sb_function_dispatcher() Handled OP_SIDEBAR_NEXT (272) -> success
[2024-03-19 14:13:02]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:02]<5> sb_repaint() repaint done
[2024-03-19 14:13:03]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:04]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:04]<1> dlg_index() Got op OP_SIDEBAR_OPEN (274)
[2024-03-19 14:13:04]<M> mx_mbox_close() Mailbox is unchanged
[2024-03-19 14:13:04]<5> msgwin_set_text() MW SET: 20, Mailbox is unchanged
[2024-03-19 14:13:04]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<3> mailbox_free() not freeing visible mailbox /home/username/.local/share/mail/mailboxa with refcount 0
[2024-03-19 14:13:04]<M> mx_mbox_open() Reading /home/username/.local/share/mail/mailboxb...
[2024-03-19 14:13:04]<5> msgwin_set_text() MW SET: 55, Reading /home/username/.local/share/mail/mailboxb...
[2024-03-19 14:13:04]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> index_repaint() repaint done
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<2> maildir_parse_dir() queueing 1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<2> maildir_parse_message() File opened (fd=5): /home/username/.local/share/mail/mailboxb/cur/1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:04]<2> parse_parameters() 'boundary="--==_mimepart_65f94ac7365f4_8d17fc192925"; charset=UTF-8'
[2024-03-19 14:13:04]<2> parse_parameters() parse_parameter: 'boundary' = '--==_mimepart_65f94ac7365f4_8d17fc192925'
[2024-03-19 14:13:04]<2> parse_parameters() parse_parameter: 'charset' = 'UTF-8'
[2024-03-19 14:13:04]<2> maildir_parse_message() File closed (fd=5)
[2024-03-19 14:13:04]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<2> maildir_move_to_mailbox() Considering
[2024-03-19 14:13:04]<2> maildir_move_to_mailbox() Adding header structure. Flags: O
[2024-03-19 14:13:04]<M> mutt_sort_headers() Sorting mailbox...
[2024-03-19 14:13:04]<5> msgwin_set_text() MW SET: 18, Sorting mailbox...
[2024-03-19 14:13:04]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:04]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:04]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> sb_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:04]<5> ibar_menu_observer() menu done, request WA_RECALC
[2024-03-19 14:13:04]<5> sb_mailbox_observer() mailbox done, request WA_RECALC
[2024-03-19 14:13:04]<1> sb_function_dispatcher() Handled OP_SIDEBAR_OPEN (274) -> success
[2024-03-19 14:13:04]<2> maildir_parse_dir() queueing 1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:04]<2> maildir_move_to_mailbox() Considering 1710851268.R6284437005510185856.whatever
[2024-03-19 14:13:04]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> index_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> ibar_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:04]<5> sb_repaint() repaint done
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:04]<5> index_repaint() repaint done
[2024-03-19 14:13:04]<5> ibar_repaint() repaint done
[2024-03-19 14:13:04]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:05]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:06]<1> dlg_index() Got op OP_SIDEBAR_PREV (277)
[2024-03-19 14:13:06]<1> sb_function_dispatcher() Handled OP_SIDEBAR_PREV (277) -> success
[2024-03-19 14:13:06]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:06]<5> sb_repaint() repaint done
[2024-03-19 14:13:07]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:08]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:09]<1> dlg_index() Got op OP_SIDEBAR_OPEN (274)
[2024-03-19 14:13:09]<M> mx_mbox_close() Mailbox is unchanged
[2024-03-19 14:13:09]<5> msgwin_set_text() MW SET: 20, Mailbox is unchanged
[2024-03-19 14:13:09]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<3> mailbox_free() not freeing visible mailbox /home/username/.local/share/mail/mailboxb with refcount 0
[2024-03-19 14:13:09]<1> mutt_folder_hook() folder-hook 'labela' matches 'labela'
[2024-03-19 14:13:09]<5> mutt_folder_hook() source "$XDG_CONFIG_HOME/neomutt/rc"
[2024-03-19 14:13:09]<1> parse_rc_buffer() NT_COMMAND: source
[2024-03-19 14:13:09]<2> source_rc() Reading configuration file '/home/username/.config/neomutt/rc'
[2024-03-19 14:13:09]<2> mutt_open_read() File opened (fd=5): /home/username/.config/neomutt/rc
[2024-03-19 14:13:09]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:09]<2> source_rc() File closed (fd=5)
[2024-03-19 14:13:09]<1> mutt_folder_hook() folder-hook 'mailboxa' matches '/home/username/.local/share/mail/mailboxa'
[2024-03-19 14:13:09]<5> mutt_folder_hook() source "$XDG_CONFIG_HOME/neomutt/rc"
[2024-03-19 14:13:09]<1> parse_rc_buffer() NT_COMMAND: source
[2024-03-19 14:13:09]<2> source_rc() Reading configuration file '/home/username/.config/neomutt/rc'
[2024-03-19 14:13:09]<2> mutt_open_read() File opened (fd=5): /home/username/.config/neomutt/rc
[2024-03-19 14:13:09]<1> parse_rc_buffer() NT_COMMAND: set
[2024-03-19 14:13:09]<2> source_rc() File closed (fd=5)
[2024-03-19 14:13:09]<M> mx_mbox_open() Reading /home/username/.local/share/mail/mailboxa...
[2024-03-19 14:13:09]<5> msgwin_set_text() MW SET: 55, Reading /home/username/.local/share/mail/mailboxa...
[2024-03-19 14:13:09]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> sb_mailbox_observer() mailbox done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_repaint() repaint done
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> sb_repaint() repaint done
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<2> maildir_parse_dir() queueing 1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<2> maildir_parse_message() File opened (fd=5): /home/username/.local/share/mail/mailboxa/cur/1710851268.R6284437005510185856.whatever:2,
[2024-03-19 14:13:09]<2> parse_parameters() 'boundary="--==_mimepart_65f94ac7365f4_8d17fc192925"; charset=UTF-8'
[2024-03-19 14:13:09]<2> parse_parameters() parse_parameter: 'boundary' = '--==_mimepart_65f94ac7365f4_8d17fc192925'
[2024-03-19 14:13:09]<2> parse_parameters() parse_parameter: 'charset' = 'UTF-8'
[2024-03-19 14:13:09]<2> maildir_parse_message() File closed (fd=5)
[2024-03-19 14:13:09]<5> msgwin_window_observer() window state done, request WA_RECALC
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<2> maildir_move_to_mailbox() Considering
[2024-03-19 14:13:09]<2> maildir_move_to_mailbox() Adding header structure. Flags: O
[2024-03-19 14:13:09]<M> mutt_sort_headers() Sorting mailbox...
[2024-03-19 14:13:09]<5> msgwin_set_text() MW SET: 18, Sorting mailbox...
[2024-03-19 14:13:09]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:09]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:09]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> sb_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:09]<5> ibar_menu_observer() menu done, request WA_RECALC
[2024-03-19 14:13:09]<5> sb_mailbox_observer() mailbox done, request WA_RECALC
[2024-03-19 14:13:09]<1> sb_function_dispatcher() Handled OP_SIDEBAR_OPEN (274) -> success
[2024-03-19 14:13:09]<5> sb_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> index_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> ibar_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:09]<5> sb_repaint() repaint done
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> mutt_addr_is_user() no, all failed
[2024-03-19 14:13:09]<5> index_repaint() repaint done
[2024-03-19 14:13:09]<5> ibar_repaint() repaint done
[2024-03-19 14:13:09]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:10]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:11]<5> main_timeout_observer() timeout done
[2024-03-19 14:13:11]<1> dlg_index() Got op OP_QUIT (204)
[2024-03-19 14:13:11]<M> mx_mbox_close() Mailbox is unchanged
[2024-03-19 14:13:11]<5> msgwin_set_text() MW SET: 20, Mailbox is unchanged
[2024-03-19 14:13:11]<5> msgwin_calc_rows() msgwin_calc_rows() => 1
[2024-03-19 14:13:11]<5> msgwin_recalc() recalc done, request WA_REPAINT
[2024-03-19 14:13:11]<5> msgwin_repaint() msgwin repaint done
[2024-03-19 14:13:11]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> pager_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> pbar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> ibar_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<5> index_index_observer() index done, request WA_RECALC
[2024-03-19 14:13:11]<3> mailbox_free() not freeing visible mailbox /home/username/.local/share/mail/mailboxa with refcount 0
[2024-03-19 14:13:11]<1> index_function_dispatcher() Handled OP_QUIT (204) -> done
[2024-03-19 14:13:11]<5> helpbar_window_observer() window focus: request WA_RECALC
[2024-03-19 14:13:11]<3> mailbox_free() not freeing visible mailbox /home/username/.local/share/mail/mailboxa with refcount 0
[2024-03-19 14:13:11]<5> sb_insertion_window_observer() insertion: hidden
[2024-03-19 14:13:11]<5> sb_window_observer() window delete done
[2024-03-19 14:13:11]<5> index_window_observer() window delete done
[2024-03-19 14:13:11]<5> msgwin_set_text() MW SET: 0,
[2024-03-19 14:13:11]<5> menu_window_observer() window delete done
[2024-03-19 14:13:11]<5> ibar_window_observer() window delete done
[2024-03-19 14:13:11]<5> ipanel_window_observer() window delete done
[2024-03-19 14:13:11]<5> pager_window_observer() window delete done
[2024-03-19 14:13:11]<5> pbar_window_observer() window delete done
[2024-03-19 14:13:11]<5> ppanel_window_observer() window delete done
[2024-03-19 14:13:11]<5> rootwin_window_observer() window delete done
[2024-03-19 14:13:11]<5> helpbar_window_observer() window delete done
[2024-03-19 14:13:11]<5> alldialogs_window_observer() window delete done
[2024-03-19 14:13:11]<5> msgwin_window_observer() window delete done
[2024-03-19 14:13:11]<1> buf_pool_cleanup() 20 of 20 returned to pool
[2024-03-19 14:13:11]<3> mailbox_free() freeing invisible mailbox /home/username/.local/share/mail/mailboxa with refcount 0
[2024-03-19 14:13:11]<3> mailbox_free() freeing invisible mailbox /home/username/.local/share/mail/mailboxb with refcount 0
[2024-03-19 14:13:11] Closing log.
# vim: syntax=neomuttlog
from neomutt.
Oh, nice find. 👏🏼
In the -Z
case we only match against the path. In the "switch mailbox" case we match against the name too.
I wonder if we maybe don't have the name yet in the first case.
from neomutt.
Strange. According to the debug log, the mailbox is added before the hook executes. So I'm not quite sure if that was the reason to do it this way:
[2024-03-19 14:13:00]<1> mailbox_add() Adding mailbox: '+mailboxa' label 'labela', poll [UNSPECIFIED], notify [UNSPECIFIED]
[…]
[2024-03-19 14:13:00]<1> mutt_folder_hook() folder-hook 'mailboxa' matches '/home/username/.local/share/mail/mailboxa'
from neomutt.
That fixes this issue for me. 👌
from neomutt.
Related Issues (20)
- C dialect HOT 2
- tag-prefix doesn't show-up in attach HOT 5
- Doubts about some `*const` pointers HOT 5
- How to use the notmuch command <modify-labels> to tag emails with tags containing spaces?
- Is it possible to edit the automatic title when forwarding or replying a message? HOT 1
- Progress for postponing a message with remote (IMAP)
- autocrypt breaks command line argument `-e "push foo"` HOT 4
- How to forward an email thread to someone else together with attachments ? HOT 3
- `delete-thread` does not support `tag-prefix` operator
- split outgoing email into batches to work around max number of recipients limit in some SMTP providers (infomaniak) HOT 3
- save-message from GMail over IMAP to local box doesn't delete original HOT 3
- Cannot open an .mbox file with neomutt (although it works with mutt) HOT 4
- neomutt truecolor and kitty
- neomutt does not replace `...` by encrypted subject HOT 6
- Inline-PGP with junk before recognized incorrectly HOT 1
- when modify mail filter fetch from history will clear old filter HOT 6
- RFC2231-style MIME part header continuations erroneously used for long Content-ID fields HOT 11
- lua-source cannot work in batch mode HOT 8
- Unexpected delay on folder load after scanning messages HOT 5
- Messages deleted outside of Mutt remain in local index, despite having been removed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neomutt.