When the <vfolder-from-query> command is run while already in a vfolder,
it takes the current vfolder as context. That means the global settings
(nm_query_type, nm_db_limit, nm_default_uri) are ignored in favor of the
current vfolder's settings. This is confusing behavior because the new
vfolder is otherwise independent from the old one.
Set the nm_uri_from_query() context to NULL so that it uses the global
settings instead.
mutt_message(_("No query, aborting"));
break;
}
- if (!nm_uri_from_query(Context->mailbox, buf, sizeof(buf)))
+ if (!nm_uri_from_query(NULL, buf, sizeof(buf)))
mutt_message(_("Failed to create query, aborting"));
else
main_change_folder(menu, op, buf, sizeof(buf), &oldcount, &index_hint);