--- a/src/mediaserver/cdplugins/uprcl/uprclindex.py
+++ b/src/mediaserver/cdplugins/uprcl/uprclindex.py
@@ -40,6 +40,17 @@
     f.write("idxabsmlen=0\n")
     f.write("loglevel=2\n")
     f.write("noaspell=1\n")
+    f.close()
+
+    # Only very recent Recoll versions have support for wavpack (only
+    # config data is missing, rclaudio processes the files all
+    # right). Make sure that we have what's needed.
+    f = open(os.path.join(confdir, "mimemap"), "w")
+    f.write(".wv = audio/x-wavpack\n")
+    f.close()
+    f = open(os.path.join(confdir, "mimeconf"), "w")
+    f.write("[index]\n")
+    f.write("audio/x-wavpack = execm rclaudio\n")
     f.close()
 
 _idxproc = None