mirror of https://github.com/djcb/mu.git
b75f9f508b
mu's query parser is the piece of software that turns your queries into something the Xapian database can understand. So, if you query "maildir:/inbox and subject:bla" this must be translated into a Xapian::Query object which will retrieve the sought after messages. Since mu's beginning, almost a decade ago, this parser was based on Xapian's default Xapian::QueryParser. It works okay, but wasn't really designed for the mu use-case, and had a bit of trouble with anything that's not A..Z (think: spaces, special characters, unicode etc.). Over the years, mu added quite a bit of pre-processing trickery to deal with that. Still, there were corner cases and bugs that were practically unfixable. The solution to all of this is to have a custom query processor that replaces Xapian's, and write it from the ground up to deal with the special characters etc. I wrote one, as part of my "future, post-1.0 mu" reseach project, and I have now backported it to the mu 0.9.19. From a technical perspective, this is a major cleanup, and allows us to get rid of much of the fragile preprocessing both for indexing and querying. From and end-user perspective this (hopefully) means that many of the little parsing issues are gone, and it opens the way for some new features. From an end-user perspective: - better support for special characters. - regexp search! yes, you can now search for regular expressions, e.g. subject:/h.ll?o/ will find subjects with hallo, hello, halo, philosophy, ... As you can imagine, this can be a _heavy_ operation on the database, and might take quite a bit longer than a normal query; but it can be quite useful. |
||
---|---|---|
.. | ||
parser | ||
tests | ||
Makefile.am | ||
doxyfile.in | ||
mu-bookmarks.c | ||
mu-bookmarks.h | ||
mu-contacts.c | ||
mu-contacts.h | ||
mu-container.c | ||
mu-container.h | ||
mu-date.c | ||
mu-date.h | ||
mu-flags.c | ||
mu-flags.h | ||
mu-index.c | ||
mu-index.h | ||
mu-log.c | ||
mu-log.h | ||
mu-maildir.c | ||
mu-maildir.h | ||
mu-msg-crypto.c | ||
mu-msg-doc.cc | ||
mu-msg-doc.h | ||
mu-msg-fields.c | ||
mu-msg-fields.h | ||
mu-msg-file.c | ||
mu-msg-file.h | ||
mu-msg-iter.cc | ||
mu-msg-iter.h | ||
mu-msg-part.c | ||
mu-msg-part.h | ||
mu-msg-prio.c | ||
mu-msg-prio.h | ||
mu-msg-priv.h | ||
mu-msg-sexp.c | ||
mu-msg.c | ||
mu-msg.h | ||
mu-query.cc | ||
mu-query.h | ||
mu-runtime.c | ||
mu-runtime.h | ||
mu-script.c | ||
mu-script.h | ||
mu-store-priv.hh | ||
mu-store-read.cc | ||
mu-store-write.cc | ||
mu-store.cc | ||
mu-store.h | ||
mu-str.c | ||
mu-str.h | ||
mu-threader.c | ||
mu-threader.h | ||
mu-util.c | ||
mu-util.h |