#3669: save-hook ignores %b expando after <change-folder> with tab complete
---------------------+----------------------
Reporter: dirkg | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: mutt | Version: 1.5.22
Resolution: | Keywords:
---------------------+----------------------
Comment (by dirkg):
Only now I see it is a FAQ already. (Q: Why doesn't $index_format "%b"
show some Maildir? A: Because "%b" extracts the string after the last
slash of the mailbox). And as <complete> adds a '/' at the end of the
path, %b isn't working.
While I can deal with the advice not to add '/' at the end of a Maildir
as a workaround for manual input, I think tab completion should "just
work" regarding the %b expando. But what's the best approach here? Just
remove any trailing "/" prior from path when b gets evaluated in
hdrline.c? Or something more generic like imap_fix_path? The latter
could also fix e.g. trailing "/" appearing in $status_format.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3669#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent