> Unfortunately the searching looks into the mailbox
specification, and
> since the mailbox specification always starts with 'notmuch://?query...'
> just jumps to next line.
Fixed, not it uses folder name rather than the path.
Actually I remembered that there is another issue with vfolders -
folder-hook. Folder hook operates on 'path' of a folder, not on it's
description. That does not matter too much for other types of mailboxes
as they are based on real path somewhere. But notmuch's 'path' can be
very different. It would be great to have that changed too.
Looking at the sources, it won't be so easy. There are several ways of
entering a (v)folder.
- main.c:1022 mutt_select_file (folder, sizeof (folder), M_SEL_FOLDER | M_SEL_BUFFY);
( that's <change-vfolder>? I believe )
- main.c:647 case 'f':
strfcpy (folder, optarg, sizeof (folder));
( that's $ mutt -f notmuch://... - I have never tried that!)
- calling <change-vfolder> directly
( somewhere in curs_main.c ? )
If we somehow cover all those entry points, setting not only 'folder'
variable but also new 'description' variable, we the could modify the
main.c:1051 mutt_folder_hook (folder);
to something like
if (we are dealing with vfolder) {
mutt_folder_hook (description);
} else {
mutt_folder_hook (folder);
}
How does that sound?
Cheers
--
Vlad