imported a few utilities from recoll, for conftree compat
Authored by: Jean-Francois Dockes 2016-02-22
Parent(s): [94ecc5]
Child(ren): [45e25f]