On Wed, Dec 04, 2013 at 04:12:59PM +0100, Vladimir Marek wrote:
[ Rest was IMO answered by Karel already ]
> > The problem I have with virtual-mailboxes is, that I can't search them
> > by their name. If I want to go to folder 'notmuch' for example, I
would
> > like to
> > - press X
> > - press CR (that should not be necessary, I guess. But it is at the moment)
> > - / ( for searching a name)
> > - type 'notmuch' and <CR>
> >
> > Unfortunately the searching looks into the mailbox specification, and
> > since the mailbox specification always starts with
'notmuch://?query...'
> > just jumps to next line.
>
> This I do not follow. This is what I see after 'X <any character>':
>
> 186( 137) Today
> 236( 178) Yest
> 3233( 0) Inboxes
> 447( 447) virtual folder 1
> 1330( 747) virtual folder 2
>
> Now I can search with '/Today<enter>' and I'm in today. How do
you
> define the virtual folders? This is what I do:
>
> virtual-mailboxes \
> "Inboxes" "$my_nmuri is:inbox" \
> "Today" "$my_nmuri date:today..today &limit=500"
\
> "Yest" "$my_nmuri date:yesterday..yesterday
&limit=500"
>
> The first quoted string serves as the folder name shown above.
It will work if you search for 'Today', but try searching for 'notmuch'
(I guess your $my_nmuri is something like 'notmuch://'). It does not
Indeed, I use my_* variables to make my config more readable.
search the virtual mailbox name, but rather it's definition.
Tis is part of my mailbox definitions:
virtual-mailboxes \
INBOX "notmuch://?query=(tag:inbox and (tag:unread or tag:flagged)
and not tag:unsorted)&type=threads" \
vm-interest "notmuch://?query=tag:vm-interest and NOT tag:archive"
\
vm-admin "notmuch://?query=tag:vm-admin and NOT tag:archive"
\
Indeed, you are right! My inbox example worked because the notmuch URI
also had inbox in it. I tried a few others with no commonality between
the URI and the vfolder description, the searches failed. One example:
"me @ Analysis" "$my_nmuri from:suvayu and folder:gwt"
Searching for ana fails to find the above.
Cheers,
--
Suvayu
Open source is the future. It sets us free.