#3581: Folder-history ignores -f folder from CLI
--------------------+-------------------------------------------------------
Reporter: Wastl | Owner: mutt-dev
Type: defect | Status: new
Priority: minor | Milestone:
Component: mutt | Version: HEAD
Keywords: |
--------------------+-------------------------------------------------------
When you start mutt giving -f folder on the command line, that folder is
not included among the suggestions (already seen folders) which appear
when (later in the session) you press 'c' to change folder and use <up-
arrow> at the prompt.
For a fix, it may be enough to add something of the sense
if (explicit_folder)
mutt_history_add (HC_MBOX, folder, 1);
in main.c e.g. somewhere around line 994, only in this form it is not
possible because of variable scope. A hack with a wrapper in history.c
worked for me.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3581>
Mutt <http://www.mutt.org/>
The Mutt mail user agent