Michael J Gruber <michaeljgruber+grubix+git@gmail.com> writes: > ``` > dirterm=XDIRECTORY$(dirname $relone) > dirdocid=$(xapian-delve -1 -t $dirterm ~/.mail/.notmuch/xapian/ | tail -n1) > docterm=XFDIRENTRY${dirdocid}:$(basename $relone) > docid=$(xapian-delve -1 -t $docterm ~/.mail/.notmuch/xapian/ | tail -n1) > xapian-delve -1 -t $docterm -r $docid -V1 ~/.mail/.notmuch/xapian/ | > grep Value | cut -d' ' -f6- > ``` Impressive hack! ;) Roughly speaking, that's what the code in question does, but a PostingSource is a Xapian way of wrapping up that double query (two calls to xapian-delve in this case) so that it can be part of a regular query with e.g. a file: prefix. _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org